|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metaio.sdk.jni.Vector4d
public class Vector4d
Structure that defines a 4D vector.
Constructor Summary | |
---|---|
Vector4d()
|
|
Vector4d(float _x,
float _y,
float _z,
float _w)
|
|
Vector4d(long cPtr,
boolean cMemoryOwn)
|
|
Vector4d(Vector4d other)
|
Method Summary | |
---|---|
Vector4d |
add(Vector4d rhs)
|
void |
delete()
|
Vector4d |
divide(float rhs)
|
float |
dot(Vector4d rhs)
scalar product, inner product) |
static long |
getCPtr(Vector4d obj)
|
float |
getW()
w component of the vector |
float |
getX()
x component of the vector |
float |
getY()
y component of the vector |
float |
getZ()
z component of the vector |
boolean |
isNull()
true if null vector, else false |
Vector4d |
multiply(float rhs)
|
float |
norm()
Result of the operation norm() == sqrt( squaredNorm()) |
void |
setW(float value)
w component of the vector |
void |
setX(float value)
x component of the vector |
void |
setY(float value)
y component of the vector |
void |
setZ(float value)
z component of the vector |
void |
setZero()
norm() == 0 |
float |
squaredNorm()
Result of the operation |
Vector4d |
subtract()
|
Vector4d |
subtract(Vector4d rhs)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Vector4d(long cPtr, boolean cMemoryOwn)
public Vector4d()
public Vector4d(float _x, float _y, float _z, float _w)
_x
- x component of the vector_y
- y component of the vector_z
- z component of the vector_w
- w component of the vectorpublic Vector4d(Vector4d other)
Method Detail |
---|
public static long getCPtr(Vector4d obj)
public void delete()
public void setX(float value)
public float getX()
public void setY(float value)
public float getY()
public void setZ(float value)
public float getZ()
public void setW(float value)
public float getW()
public void setZero()
public Vector4d subtract()
public Vector4d add(Vector4d rhs)
public Vector4d subtract(Vector4d rhs)
public Vector4d multiply(float rhs)
public Vector4d divide(float rhs)
public float dot(Vector4d rhs)
rhs
- Right hand side of the operation
Result of the operationpublic float squaredNorm()
public float norm()
public boolean isNull()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |