Package org.web3d.x3d.sai
Interface SFVec2f
-
Method Summary
Methods inherited from interface org.web3d.x3d.sai.X3DField
addX3DEventListener, getDefinition, getUserData, isReadable, isWritable, removeX3DEventListener, setUserData
-
Method Details
-
getValue
void getValue(float[] vec) Write the vector value to the given eventOut- Parameters:
vec
- The array of vector values to be filled in where
vec[0] = X
vec[1] = Y- Throws:
ArrayIndexOutOfBoundsException
- The provided array was too small
-
setValue
void setValue(float[] value) Set the vector value in the given eventIn.The value array must contain at least two elements. If the array contains more than 2 values only the first 2 values will be used and the rest ignored.
If the array of values does not contain at least 2 elements an ArrayIndexOutOfBoundsException will be generated.
- Parameters:
value
- The array of vector components where
value[0] = X
value[1] = Y- Throws:
ArrayIndexOutOfBoundsException
- The value did not contain at least two values for the vector
-