vrml.field
Class ConstSFVec2f

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

public class ConstSFVec2f
extends ConstField

Represents a read-only VRML SFVec2f field in Java.


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

ConstSFVec2f

public ConstSFVec2f(float x,
                    float y)
Construct a read-only SFVec2f field.

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

getValue

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

Parameters:
vec2s - X and Y values representing the SFVec2f

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