Package org.web3d.x3d.sai
Interface SFRotation
- All Superinterfaces:
X3DField
- All Known Implementing Classes:
SFRotationObject
public interface SFRotation extends X3DField
SFRotation is an axis-angle 4-tuple, indicating X-Y-Z direction axis plus angle orientation about that axis. The first three values specify a normalized axis vector about which the rotation takes place, so the first three values shall be within the range [-1..+1] in order to represent a normalized unit vector. The fourth value specifies the amount of right-handed rotation about that axis in radians. Warning: comma characters in attribute values do not pass strict XML validation.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
-
Method Summary
Methods inherited from interface org.web3d.x3d.sai.X3DField
addX3DEventListener, getDefinition, isReadable, isWritable, removeX3DEventListener
-
Method Details
-
getValue
void getValue(float[] valueDestination)Write out the current value of this field into the external valueDestination array.- Parameters:
valueDestination- The array to be filled in with current field values.- Throws:
java.lang.ArrayIndexOutOfBoundsException- The provided valueDestination array was too small.
-
setValue
void setValue(float[] newValue)Assign a new value to this field.- Parameters:
newValue- is replacement value array to assign
-