vrml.field
Class SFVec3d

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

public class SFVec3d
extends Field

Represents a VRML SFVec3d field in Java.


Constructor Summary
SFVec3d()
          Construct a default SFVec3d field.
SFVec3d(double x, double y, double z)
          Construct anSFVec3d field using the given values.
 
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.
 void setValue(ConstSFVec3d vec)
          Set the value of an SFVec3d using the given ConstSFVec3d.
 void setValue(double[] vec3s)
          Set the value of an SFVec3d.
 void setValue(double x, double y, double z)
          Set the value of SFVec3d with the given values.
 void setValue(SFVec3d vec)
          Set the value of an SFVec3d using the given SFVec3d.
 
Methods inherited from class vrml.Field
clone, dispose, finalize, getPeer, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SFVec3d

public SFVec3d()
Construct a default SFVec3d field.


SFVec3d

public SFVec3d(double x,
               double y,
               double z)
Construct anSFVec3d field using the given values.

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

setValue

public void setValue(double[] vec3s)
Set the value of an SFVec3d.

Parameters:
vec3s - X, Y, Z value

setValue

public void setValue(double x,
                     double y,
                     double z)
Set the value of SFVec3d with the given values.

Parameters:
x - X-component of vector
y - Y-component of vector
z - Z-component of vector

setValue

public void setValue(ConstSFVec3d vec)
Set the value of an SFVec3d using the given ConstSFVec3d.

Parameters:
vec - ConstSFVec3d to take X, Y, Z values from.

setValue

public void setValue(SFVec3d vec)
Set the value of an SFVec3d using the given SFVec3d.

Parameters:
vec - SFVec3d to take X, Y, Z values from.