public class SFVec2d extends Field
| Constructor and Description |
|---|
SFVec2d()
Construct a default SFVec2d field.
|
SFVec2d(double x,
double y)
Construct an SFVec2d field.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SFVec2d()
public SFVec2d(double x,
double y)
x - X-componenty - Y-componentpublic 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 valuepublic 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.