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