vrml.field
Class SFVec3f

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

public class SFVec3f
extends Field

Represents a VRML SFVec3f field in Java.


Constructor Summary
SFVec3f()
          Construct a default SFVec3f field.
SFVec3f(float x, float y, float z)
          Construct anSFVec3f field using the given values.
 
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.
 void setValue(ConstSFVec3f vec)
          Set the value of an SFVec3f using the given ConstSFVec3f.
 void setValue(float[] vec3s)
          Set the value of an SFVec3f.
 void setValue(float x, float y, float z)
          Set the value of SFVec3f with the given values.
 void setValue(SFVec3f vec)
          Set the value of an SFVec3f using the given SFVec3f.
 
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

SFVec3f

public SFVec3f()
Construct a default SFVec3f field.


SFVec3f

public SFVec3f(float x,
               float y,
               float z)
Construct anSFVec3f field using the given values.

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

setValue

public void setValue(float[] vec3s)
Set the value of an SFVec3f.

Parameters:
vec3s - X, Y, Z value

setValue

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

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

setValue

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

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

setValue

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

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