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