50#ifndef _SO_SF_ROTATION_
51#define _SO_SF_ROTATION_
53#include <Inventor/fields/SoSubField.h>
54#include <Inventor/SbLinear.h>
107 { evaluate(); value.
getValue(axis, angle); }
112 void setValue(
float q0,
float q1,
float q2,
float q3);
133 static void initClass();
134 static void exitClass();
Class for representing a rotation.
const float * getValue() const
Returns pointer to array of 4 components defining quaternion.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for repres...
Field containing a rotation.
void setValue(const SbRotationd &rotd)
Convenience method that allows you to specify a field value using a double precision variable.
void setValue(const float q[4])
Sets the field to the given quaternion (x, y, z, w).
void setValue(float q0, float q1, float q2, float q3)
Sets the field to the given quaternion (x, y, z, w).
void setValue(const SbVec3f &axis, float angle)
Sets the field to the rotation given by axis/angle.
void getValue(SbVec3f &axis, float &angle) const
Gets the value of the field as an axis/angle.
Abstract base class for all single-value fields.