vrml.field
Class ConstSFVec2d

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

public class ConstSFVec2d
extends ConstField

Represents a read-only VRML SFVec2d field in Java.


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

ConstSFVec2d

public ConstSFVec2d(double x,
                    double y)
Construct a read-only SFVec2d field.

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

getValue

public void getValue(double[] vec2s)
Get the X and Y values representing the SFVec2d.

Parameters:
vec2s - X and Y values representing the SFVec2d

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