|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.math.Vec4f
public class Vec4f
4-element single-precision vector
Constructor Summary | |
---|---|
Vec4f()
|
|
Vec4f(float x,
float y,
float z,
float w)
|
|
Vec4f(Vec4f arg)
|
Method Summary | |
---|---|
void |
add(Vec4f b)
this = this + b |
void |
add(Vec4f a,
Vec4f b)
this = a + b |
Vec4f |
addScaled(float s,
Vec4f arg)
Returns this + s * arg; creates new vector |
void |
addScaled(Vec4f a,
float s,
Vec4f b)
this = a + s * b |
void |
componentMul(Vec4f arg)
Sets each component of this vector to the product of the component with the corresponding component of the argument vector. |
Vec4f |
copy()
|
float |
dot(Vec4f arg)
|
float |
get(int i)
Gets the ith component, 0 <= i < 4 |
float |
length()
|
float |
lengthSquared()
|
Vec4f |
minus(Vec4f arg)
Returns this - arg; creates new vector |
void |
normalize()
|
Vec4f |
plus(Vec4f arg)
Returns this + arg; creates new vector |
void |
scale(float val)
this = this * val |
void |
set(float x,
float y,
float z,
float w)
|
void |
set(int i,
float val)
Sets the ith component, 0 <= i < 4 |
void |
set(Vec4f arg)
|
void |
setW(float w)
|
void |
setX(float x)
|
void |
setY(float y)
|
void |
setZ(float z)
|
void |
sub(Vec4f b)
this = this - b |
void |
sub(Vec4f a,
Vec4f b)
this = a - b |
Vec4f |
times(float val)
Returns this * val; creates new vector |
String |
toString()
|
Vecf |
toVecf()
|
float |
w()
|
float |
x()
|
float |
y()
|
float |
z()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Vec4f()
public Vec4f(Vec4f arg)
public Vec4f(float x, float y, float z, float w)
Method Detail |
---|
public Vec4f copy()
public void set(Vec4f arg)
public void set(float x, float y, float z, float w)
public void set(int i, float val)
public float get(int i)
public float x()
public float y()
public float z()
public float w()
public void setX(float x)
public void setY(float y)
public void setZ(float z)
public void setW(float w)
public float dot(Vec4f arg)
public float length()
public float lengthSquared()
public void normalize()
public Vec4f times(float val)
public void scale(float val)
public Vec4f plus(Vec4f arg)
public void add(Vec4f b)
public void add(Vec4f a, Vec4f b)
public Vec4f addScaled(float s, Vec4f arg)
public void addScaled(Vec4f a, float s, Vec4f b)
public Vec4f minus(Vec4f arg)
public void sub(Vec4f b)
public void sub(Vec4f a, Vec4f b)
public void componentMul(Vec4f arg)
public Vecf toVecf()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |