vrml.field
Class ConstSFVec3f

java.lang.Object
  extended by vrml.Field
      extended by vrml.ConstField
          extended by vrml.field.ConstSFVec3f
All Implemented Interfaces:
java.lang.Cloneable

public class ConstSFVec3f
extends ConstField

Represents a read-only VRML SFVec3f field in Java.


Constructor Summary
ConstSFVec3f(float x, float y, float z)
          Construct a read-only SFVec3f field.
 
Method Summary
 void getValue(float[] vec3s)
          Get the X, Y and Z values representing the SFVec3f.
 float getX()
          Get the X-component of the vector.
 float getY()
          Get the Y-component of the vector.
 float getZ()
          Get the Z-component of the vector.
 
Methods inherited from class vrml.ConstField
clone
 
Methods inherited from class vrml.Field
dispose, finalize, getPeer, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstSFVec3f

public ConstSFVec3f(float x,
                    float y,
                    float z)
Construct a read-only SFVec3f field.

Parameters:
x - X-component
y - Y-component
z - Z-component
Method Detail

getValue

public void getValue(float[] vec3s)
Get the X, Y and Z values representing the SFVec3f.

Parameters:
vec3s - X, Y and Z values representing the SFVec3f

getX

public float getX()
Get the X-component of the vector.

Returns:
X-component of the vector

getY

public float getY()
Get the Y-component of the vector.

Returns:
Y-component of the vector

getZ

public float getZ()
Get the Z-component of the vector.

Returns:
Z-component of the vector