vrml.field
Class ConstSFVec3d

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

public class ConstSFVec3d
extends ConstField

Represents a read-only VRML SFVec3d field in Java.


Constructor Summary
ConstSFVec3d(double x, double y, double z)
          Construct a read-only SFVec3d field.
 
Method Summary
 void getValue(double[] vec3s)
          Get the X, Y and Z values representing the SFVec3d.
 double getX()
          Get the X-component of the vector.
 double getY()
          Get the Y-component of the vector.
 double 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

ConstSFVec3d

public ConstSFVec3d(double x,
                    double y,
                    double z)
Construct a read-only SFVec3d field.

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

getValue

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

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

getX

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

Returns:
X-component of the vector

getY

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

Returns:
Y-component of the vector

getZ

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

Returns:
Z-component of the vector