Package vrml.field
Class ConstSFRotation
java.lang.Object
vrml.Field
vrml.ConstField
vrml.field.ConstSFRotation
- All Implemented Interfaces:
Cloneable
VRML type class containing a rotation field
- Version:
- $Revision: 1.5 $
- Author:
- Alan Hudson, Justin Couch
-
Field Summary
FieldsFields inherited from class vrml.Field
valueChanged
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Construct an instance with default values.ConstSFRotation
(float axisX, float axisY, float axisZ, float angle) Create a new rotation based on the given values. -
Method Summary
-
Field Details
-
data
protected float[] dataThe components of the field
-
-
Constructor Details
-
ConstSFRotation
protected ConstSFRotation()Construct an instance with default values. Not available to mere mortals. -
ConstSFRotation
public ConstSFRotation(float axisX, float axisY, float axisZ, float angle) Create a new rotation based on the given values.- Parameters:
axisX
- The x component of the rotation axisaxisY
- The y component of the rotation axisaxisZ
- The z component of the rotation axisangle
- The angle component of the rotation
-
-
Method Details
-
getValue
public void getValue(float[] rotations) Copy this angle into the user array- Parameters:
rotations
- The target array to copy into
-
toString
-
clone
-