Package vrml.field
Class SFRotation
java.lang.Object
vrml.Field
vrml.field.SFRotation
-
Field Summary
FieldsFields inherited from class vrml.Field
valueChanged
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new default rotation with the fields set to 0 1 0 0SFRotation
(float axisX, float axisY, float axisZ, float angle) Create a new rotation based on the given values. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Create a cloned copy of this node.void
getValue
(float[] rotations) Copy this angle into the user arrayvoid
setValue
(float[] rotations) Set the field to the new value based on the user datavoid
setValue
(float axisX, float axisY, float axisZ, float angle) Set the field to the new components.void
setValue
(ConstSFRotation rotation) Set this field to the values from the passed in fieldvoid
setValue
(SFRotation rotation) Set this field to the values from the passed in fieldtoString()
Create a string representation of this field.
-
Field Details
-
data
protected float[] dataThe components of the field
-
-
Constructor Details
-
SFRotation
public SFRotation()Create a new default rotation with the fields set to 0 1 0 0 -
SFRotation
public SFRotation(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
-
setValue
public void setValue(float[] rotations) Set the field to the new value based on the user data- Parameters:
rotations
- The new data to copy
-
setValue
public void setValue(float axisX, float axisY, float axisZ, float angle) Set the field to the new components.- 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
-
setValue
Set this field to the values from the passed in field- Parameters:
rotation
- The field to copy the values from
-
setValue
Set this field to the values from the passed in field- Parameters:
rotation
- The field to copy the values from
-
toString
-
clone
-