Package vrml.field
Class ConstSFVec3f
java.lang.Object
vrml.Field
vrml.ConstField
vrml.field.ConstSFVec3f
- All Implemented Interfaces:
Cloneable
VRML JSAI type class containing a 3 component vector field
- Version:
- $Revision: 1.5 $
- Author:
- Alan Hudson, Justin Couch
-
Field Summary
FieldsFields inherited from class vrml.Field
valueChanged -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstruct an instance with default values.ConstSFVec3f(float x, float y, float z) Create a new vec based on the given values. -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a cloned copy of this node.voidgetValue(float[] vec) Copy this angle into the user arrayfloatgetX()Get the x component of the colorfloatgetY()Get the y component of the colorfloatgetZ()Get the z component of the colortoString()Create a string representation of this field.
-
Field Details
-
data
protected float[] dataThe components of the field
-
-
Constructor Details
-
ConstSFVec3f
protected ConstSFVec3f()Construct an instance with default values. Not available to mere mortals. -
ConstSFVec3f
public ConstSFVec3f(float x, float y, float z) Create a new vec based on the given values.- Parameters:
x- The x component of the vecy- The y component of the vecz- The z 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
-
getZ
public float getZ()Get the z component of the color- Returns:
- The z value
-
toString
-
clone
-