public class ConstMFVec3f extends ConstMField
Constructor and Description |
---|
ConstMFVec3f(float[] vec3s)
Construct a read-only MFVec3f field.
|
ConstMFVec3f(float[][] vec3s)
Construct a read-only MFVec3f field.
|
ConstMFVec3f(int size,
float[] vec3s)
Construct a read-only MFVec3f field.
|
Modifier and Type | Method and Description |
---|---|
void |
get1Value(int index,
float[] vec3s)
Retrieves a specific element in an MFVec3f and
returns it as a float array.
|
void |
get1Value(int index,
SFVec3f vec)
Retrieves a specific element in an MFVec3f and
returns it as an SFVec3f.
|
int |
getSize()
Number of elements contained in the MField.
|
void |
getValue(float[] vec3s)
Retrieves the value of an MFVec3f field.
|
void |
getValue(float[][] vec3s)
Retrieves the value of an MFVec3f field.
|
clone
public ConstMFVec3f(float[][] vec3s)
vec3s
- An array of sets of x,y,z valuespublic ConstMFVec3f(float[] vec3s)
vec3s
- List of x,y,z tuplespublic ConstMFVec3f(int size, float[] vec3s)
size
- Number of SFVec3f elements passed in.vec3s
- List of x,y,z tuplespublic int getSize()
ConstMField
getSize
in class ConstMField
public void getValue(float[][] vec3s)
vec3s
- 2D array of x,y,z tuples to be returned.public void getValue(float[] vec3s)
vec3s
- Array of x,y,z tuples to be returned.public void get1Value(int index, float[] vec3s)
index
- Position of desired elementvec3s
- Element at specified positionpublic void get1Value(int index, SFVec3f vec)
index
- Position of desired elementvec
- Element at specified position