|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.Field
vrml.field.SFVec2f
public class SFVec2f
Represents a VRML SFVec2f field in Java.
Constructor Summary | |
---|---|
SFVec2f()
Construct a default SFVec2f field. |
|
SFVec2f(float x,
float y)
Construct an 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. |
void |
setValue(ConstSFVec2f vec)
Set the value of an SFVec2f using the given ConstSFVec2f. |
void |
setValue(float[] vec2s)
Set the value of an SFVec2f. |
void |
setValue(float x,
float y)
Set the value of SFVec2f with the given values. |
void |
setValue(SFVec2f vec)
Set the value of an SFVec2f using the given SFVec2f. |
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 |
---|
public SFVec2f()
public SFVec2f(float x, float y)
x
- X-componenty
- Y-componentMethod Detail |
---|
public void getValue(float[] vec2s)
vec2s
- X and Y values representing the SFVec2fpublic float getX()
public float getY()
public void setValue(float[] vec2s)
vec2s
- X, Y valuepublic void setValue(float x, float y)
x
- X-component of vectory
- Y-component of vectorpublic void setValue(ConstSFVec2f vec)
vec
- ConstSFVec3f to take X, Y values from.public void setValue(SFVec2f vec)
vec
- ConstSFVec3f to take X, Y values from.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |