public class MFVec3d extends MField
| Constructor and Description |
|---|
MFVec3d()
Default constructor.
|
MFVec3d(double[] vec3s)
Construct an MFVec3d field.
|
MFVec3d(double[][] vec3s)
Construct an MFVec3d field.
|
MFVec3d(int size,
double[] vec3s)
Construct an MFVec3d field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(ConstSFVec3d vec)
Add a new element at the end of the list.
|
void |
addValue(double x,
double y,
double z)
Add a new element at the end of the list.
|
void |
addValue(SFVec3d vec)
Add a new element at the end of the list.
|
void |
clear()
Removes all fields from the MField.
|
void |
delete(int index)
Deletes a field from the MField.
|
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.
|
void |
insertValue(int index,
ConstSFVec3d vec)
Insert a new element at the specified position.
|
void |
insertValue(int index,
double x,
double y,
double z)
Insert a new element at the specified position.
|
void |
insertValue(int index,
SFVec3d vec)
Insert a new element at the specified position.
|
void |
set1Value(int index,
ConstSFVec3d vec)
Set a specified element in the field.
|
void |
set1Value(int index,
double x,
double y,
double z)
Set a specified element in the field.
|
void |
set1Value(int index,
SFVec3d vec)
Set a specified element in the field.
|
void |
setValue(ConstMFVec3d vecs)
Set the value of the field.
|
void |
setValue(double[] vec3s)
Set the value of the field.
|
void |
setValue(double[][] vec3s)
Set the value of the field.
|
void |
setValue(int size,
double[] vec3s)
Set the value of the field.
|
void |
setValue(MFVec3d vecs)
Set the value of the field.
|
public MFVec3d()
public MFVec3d(double[][] vec3s)
vec3s - An array of sets of x,y,z valuespublic MFVec3d(double[] vec3s)
vec3s - List of x,y,z tuplespublic MFVec3d(int size,
double[] vec3s)
size - Number of SFVec3d elements passed in.vec3s - List of x,y,z tuplespublic int getSize()
MFieldpublic void clear()
MFieldpublic void delete(int index)
MFieldpublic 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 positionpublic void setValue(double[][] vec3s)
vec3s - New value for field.public void setValue(double[] vec3s)
vec3s - New value for field.public void setValue(int size,
double[] vec3s)
size - Size of new value for field.vec3s - New value for field.public void setValue(MFVec3d vecs)
vecs - New value for field.public void setValue(ConstMFVec3d vecs)
vecs - New value for field.public void set1Value(int index,
double x,
double y,
double z)
index - Position of element to update.x - X-component of new value.y - Y-component of new value.z - Z-component of new value.public void set1Value(int index,
ConstSFVec3d vec)
index - Position of element to update.vec - New value for element.public void set1Value(int index,
SFVec3d vec)
index - Position of element to update.vec - New value for element.public void addValue(double x,
double y,
double z)
x - X-component of the vector to add.y - Y-component of the vector to add.z - Z-component of the vector to add.public void addValue(ConstSFVec3d vec)
vec - Element to add.public void addValue(SFVec3d vec)
vec - Element to add.public void insertValue(int index,
double x,
double y,
double z)
index - Position to insert new element at.x - X-component of value to insert.y - Y-component of value to insert.z - Z-component of value to insert.public void insertValue(int index,
ConstSFVec3d vec)
index - Position to insert new element at.vec - Value to insert.public void insertValue(int index,
SFVec3d vec)
index - Position to insert new element at.vec - Value to insert.