public class ConstMFRotation extends ConstMField
Constructor and Description |
---|
ConstMFRotation(float[] rotations)
Construct a read-only MFRotation field.
|
ConstMFRotation(float[][] rotations)
Construct a read-only MFRotation field.
|
ConstMFRotation(int size,
float[] rotations)
Construct a read-only MFRotation field.
|
Modifier and Type | Method and Description |
---|---|
void |
get1Value(int index,
float[] rotation)
Retrieves a specific rotation element in an MFRotation and
returns it as a float array.
|
void |
get1Value(int index,
SFRotation rotation)
Retrieves a specific rotation element in an MFRotation and
returns it as an SFRotation.
|
int |
getSize()
Number of elements contained in the MField.
|
void |
getValue(float[] rotations)
Retrieves the value of an MFRotation field.
|
void |
getValue(float[][] rotations)
Retrieves the value of an MFRotation field.
|
clone
public ConstMFRotation(float[][] rotations)
rotations
- An array of four float tuples. (x, y, z, a)public ConstMFRotation(float[] rotations)
rotations
- List of x, y, z, a 4-tuplespublic ConstMFRotation(int size, float[] rotations)
size
- Number of rotations passed in.rotations
- List of x, y, z, a 4-tuplespublic int getSize()
ConstMField
getSize
in class ConstMField
public void getValue(float[][] rotations)
rotations
- 2D array of sets of rotation values to be returned.public void getValue(float[] rotations)
rotations
- Array of sets of rotations values to be returned.public void get1Value(int index, float[] rotation)
index
- Position of desired rotationrotation
- Value of specified rotation.public void get1Value(int index, SFRotation rotation)
index
- Position of desired rotationrotation
- SFRotation to be set to desired value.