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