vrml.field
Class SFRotation

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

public class SFRotation
extends Field

Represents a VRML SFRotation field in Java.


Constructor Summary
SFRotation()
          Construct a default SFRotation field.
SFRotation(float axisX, float axisY, float axisZ, float angle)
          Construct an SFRotation field.
 
Method Summary
 void getValue(float[] rotations)
          Get the X, Y, Z and angle values representing the SFRotation.
 void setValue(ConstSFRotation rotation)
          Set the value of an SFRotation.
 void setValue(float[] rotations)
          Set the X, Y, Z and angle values of an SFRotation.
 void setValue(float axisX, float axisY, float axisZ, float angle)
          Set the X, Y, Z and angle values of an SFRotation.
 void setValue(SFRotation rotation)
          Set the value of an SFRotation.
 
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

SFRotation

public SFRotation()
Construct a default SFRotation field.


SFRotation

public SFRotation(float axisX,
                  float axisY,
                  float axisZ,
                  float angle)
Construct an SFRotation field.

Parameters:
axisX - X-component of the rotation
axisY - Y-component of the rotation
axisZ - Z-component of the rotation
angle - Angle of the rotation
Method Detail

getValue

public void getValue(float[] rotations)
Get the X, Y, Z and angle values representing the SFRotation.

Parameters:
rotations - X, Y, Z and angle values representing the SFRotation

setValue

public void setValue(float[] rotations)
Set the X, Y, Z and angle values of an SFRotation.

Parameters:
rotations - X, Y, Z and angle values to set SFRotation with

setValue

public void setValue(float axisX,
                     float axisY,
                     float axisZ,
                     float angle)
Set the X, Y, Z and angle values of an SFRotation.

Parameters:
axisX - X-component of the rotation
axisY - Y-component of the rotation
axisZ - Z-component of the rotation
angle - Angle of the rotation

setValue

public void setValue(ConstSFRotation rotation)
Set the value of an SFRotation.

Parameters:
rotation - ConstSFRotation to take values from

setValue

public void setValue(SFRotation rotation)
Set the value of an SFRotation.

Parameters:
rotation - SFRotation to take values from