public class ConstMFVec2f extends ConstMField
| Constructor and Description |
|---|
ConstMFVec2f(float[] vec2s)
Construct a read-only MFVec2f field.
|
ConstMFVec2f(float[][] vec2s)
Construct a read-only MFVec2f field.
|
ConstMFVec2f(int size,
float[] vec2s)
Construct a read-only MFVec2f field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
get1Value(int index,
float[] vec2s)
Retrieves a specific element in an MFVec2f and
returns it as a float array.
|
void |
get1Value(int index,
SFVec2f vec)
Retrieves a specific element in an MFVec2f and
returns it as an SFVec2f.
|
int |
getSize()
Number of elements contained in the MField.
|
void |
getValue(float[] vec2s)
Retrieves the value of an MFVec2f field.
|
void |
getValue(float[][] vec2s)
Retrieves the value of an MFVec2f field.
|
clonepublic ConstMFVec2f(float[][] vec2s)
vec2s - An array of sets of x,y valuespublic ConstMFVec2f(float[] vec2s)
vec2s - List of x,y pairspublic ConstMFVec2f(int size,
float[] vec2s)
size - Number of SFVec2f elements passed in.vec2s - List of x,y pairspublic int getSize()
ConstMFieldgetSize in class ConstMFieldpublic void getValue(float[][] vec2s)
vec2s - 2D array of x,y pairs to be returned.public void getValue(float[] vec2s)
vec2s - Array of x,y pairs to be returned.public void get1Value(int index,
float[] vec2s)
index - Position of desired elementvec2s - Element at specified positionpublic void get1Value(int index,
SFVec2f vec)
index - Position of desired elementvec - Element at specified position