Package vrml.field
Class ConstSFVec2f
java.lang.Object
vrml.Field
vrml.ConstField
vrml.field.ConstSFVec2f
- All Implemented Interfaces:
Cloneable
VRML JSAI type class containing a fixed 2 component vector field
- Version:
- $Revision: 1.5 $
- Author:
- Alan Hudson, Justin Couch
-
Field Summary
FieldsFields inherited from class vrml.Field
valueChanged
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Construct an instance with default values.ConstSFVec2f
(float x, float y) Create a new vec based on the given values. -
Method Summary
-
Field Details
-
data
protected float[] dataThe components of the field
-
-
Constructor Details
-
ConstSFVec2f
protected ConstSFVec2f()Construct an instance with default values. Not available to mere mortals. -
ConstSFVec2f
public ConstSFVec2f(float x, float y) Create a new vec based on the given values.- Parameters:
x
- The x component of the vecy
- The y component of the vec
-
-
Method Details
-
getValue
public void getValue(float[] vec) Copy this angle into the user array- Parameters:
vec
- The target array to copy into
-
getX
public float getX()Get the x component of the color- Returns:
- The x value
-
getY
public float getY()Get the y component of the color- Returns:
- The y value
-
toString
-
clone
-