|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metaio.sdk.jni.Vector3d
public class Vector3d
Structure that defines a 3D vector.
Constructor Summary | |
---|---|
Vector3d()
|
|
Vector3d(float _n)
|
|
Vector3d(float _x,
float _y,
float _z)
|
|
Vector3d(long cPtr,
boolean cMemoryOwn)
|
|
Vector3d(Vector3d other)
|
Method Summary | |
---|---|
Vector3d |
add(Vector3d rhs)
|
void |
delete()
|
Vector3d |
divide(float rhs)
|
float |
dot(Vector3d rhs)
scalar product, inner product) |
static long |
getCPtr(Vector3d obj)
|
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 |
Vector3d |
multiply(float rhs)
|
float |
norm()
Result of the operation norm() == sqrt( squaredNorm()) |
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 |
Vector3d |
subtract()
|
Vector3d |
subtract(Vector3d rhs)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Vector3d(long cPtr, boolean cMemoryOwn)
public Vector3d()
public Vector3d(float _n)
_n
- x, y and z components of the vectorpublic Vector3d(float _x, float _y, float _z)
_x
- x component of the vector_y
- y component of the vector_z
- z component of the vectorpublic Vector3d(Vector3d other)
Method Detail |
---|
public static long getCPtr(Vector3d 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 setZero()
public Vector3d subtract()
public Vector3d add(Vector3d rhs)
public Vector3d subtract(Vector3d rhs)
public Vector3d multiply(float rhs)
public Vector3d divide(float rhs)
public float dot(Vector3d 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 |