public class SFVec3f extends Field
Constructor and Description |
---|
SFVec3f()
Construct a default SFVec3f field.
|
SFVec3f(float x,
float y,
float z)
Construct anSFVec3f field using the given values.
|
Modifier and Type | Method and Description |
---|---|
void |
getValue(float[] vec3s)
Get the X, Y and Z values representing the SFVec3f.
|
float |
getX()
Get the X-component of the vector.
|
float |
getY()
Get the Y-component of the vector.
|
float |
getZ()
Get the Z-component of the vector.
|
void |
setValue(ConstSFVec3f vec)
Set the value of an SFVec3f using the given ConstSFVec3f.
|
void |
setValue(float[] vec3s)
Set the value of an SFVec3f.
|
void |
setValue(float x,
float y,
float z)
Set the value of SFVec3f with the given values.
|
void |
setValue(SFVec3f vec)
Set the value of an SFVec3f using the given SFVec3f.
|
public SFVec3f()
public SFVec3f(float x, float y, float z)
x
- X-componenty
- Y-componentz
- Z-componentpublic void getValue(float[] vec3s)
vec3s
- X, Y and Z values representing the SFVec3fpublic float getX()
public float getY()
public float getZ()
public void setValue(float[] vec3s)
vec3s
- X, Y, Z valuepublic void setValue(float x, float y, float z)
x
- X-component of vectory
- Y-component of vectorz
- Z-component of vectorpublic void setValue(ConstSFVec3f vec)
vec
- ConstSFVec3f to take X, Y, Z values from.public void setValue(SFVec3f vec)
vec
- SFVec3f to take X, Y, Z values from.