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