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