|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csgeom.math3d_d.csDVector3
A 3D vector.
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csDVector3()
Make a new vector. |
|
csDVector3(csDVector3 v)
Copy Constructor. |
|
csDVector3(csVector3 v)
Conversion from single precision vector to double. |
|
csDVector3(double m)
Make a new initialized vector. |
|
csDVector3(double ix,
double iy)
Make a new vector and initialize with the given values. |
|
csDVector3(double ix,
double iy,
double iz)
Make a new vector and initialize with the given values. |
|
csDVector3(iPointer nPointer)
Create a java csDVector3 object which points to the native csDVector3 nPointer. |
|
| Method Summary | |
csDVector3 |
add()
Unary + operator. |
csDVector3 |
add(csDVector3 v)
Add another vector to this vector. |
static csDVector3 |
add(csDVector3 v1,
csDVector3 v2)
Add two vectors. |
void |
cross(csDVector3 px,
csDVector3 py)
Take cross product of two vectors and put result in this vector. |
static csDVector3 |
div(csDVector3 v,
double f)
Divide a vector by a scalar. |
csDVector3 |
div(double f)
Divide this vector by a scalar. |
static boolean |
equals(csDVector3 v1,
csDVector3 v2)
Check if two vectors are equal. |
boolean |
equals(java.lang.Object obj)
Check if two vectors are equal. |
static boolean |
greater(double f,
csDVector3 v)
Test if each component of a vector is greater than a small epsilon value. |
protected boolean |
isNativePointerValidSafe(long nPointer)
|
double |
item(int n)
Returns n-th component of the vector. |
static boolean |
less(csDVector3 v,
double f)
Test if each component of a vector is less than a small epsilon value. |
csDVector3 |
minus()
Unary - operator. |
csDVector3 |
minus(csDVector3 v)
Subtract another vector from this vector. |
static csDVector3 |
minus(csDVector3 v1,
csDVector3 v2)
Subtract two vectors. |
static csDVector3 |
mod(csDVector3 v1,
csDVector3 v2)
Take the cross product of two vectors. |
static double |
mul(csDVector3 v1,
csDVector3 v2)
Take the dot product of two vectors. |
static csDVector3 |
mul(csDVector3 v,
double f)
Multiply a vector and a scalar. |
csDVector3 |
mul(double f)
Multiply this vector by a scalar. |
static csDVector3 |
mul(double f,
csDVector3 v)
Multiply a vector and a scalar. |
protected void |
nDelete(long pointer)
|
static boolean |
nEquals(csDVector3 v1,
csDVector3 v2)
Check if two vectors are not equal. |
double |
norm()
Returns the norm of this vector. |
static double |
norm(csDVector3 v)
Returns the norm (magnitude) of a vector. |
void |
normalize()
Scale this vector to length = 1.0. |
static csDVector3 |
projectl(csDVector3 v1,
csDVector3 v2)
Project one vector onto another. |
static csDVector3 |
projectr(csDVector3 v1,
csDVector3 v2)
Project one vector onto another. |
void |
set(double sx,
double sy,
double sz)
Set the value of this vector. |
double |
squaredNorm()
Returns the norm of this vector. |
csDVector3 |
unit()
Returns the unit vector in the direction of this vector. |
static csDVector3 |
unit(csDVector3 v)
Normalizes a vector to a unit vector. |
double |
x()
The X component of the vector. |
void |
x(double x)
The X component of the vector. |
double |
y()
The Y component of the vector. |
void |
y(double y)
The Y component of the vector. |
double |
z()
The Z component of the vector. |
void |
z(double z)
The Z component of the vector. |
| Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, finalize, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public csDVector3(iPointer nPointer)
nPointer - public csDVector3()
public csDVector3(double m)
m -
public csDVector3(double ix,
double iy)
ix - iy -
public csDVector3(double ix,
double iy,
double iz)
ix - iy - iz - public csDVector3(csDVector3 v)
v - public csDVector3(csVector3 v)
v - | Method Detail |
protected void nDelete(long pointer)
nDelete in class csNativeObjectcsNativeObject.nDelete(long)protected boolean isNativePointerValidSafe(long nPointer)
isNativePointerValidSafe in class csNativeObjectcrystalspace.jbind.impl.csNativeObject#isNativePointerValidSafe()
public final void cross(csDVector3 px,
csDVector3 py)
px - py - public final double item(int n)
n -
public final csDVector3 add(csDVector3 v)
v -
public final csDVector3 minus(csDVector3 v)
v -
public final csDVector3 mul(double f)
f -
public final csDVector3 div(double f)
f -
public final csDVector3 add()
public csDVector3 minus()
public final void set(double sx,
double sy,
double sz)
sx - sy - sz - public final double norm()
public final double squaredNorm()
public final csDVector3 unit()
public final void normalize()
public static final double norm(csDVector3 v)
v -
public static final csDVector3 unit(csDVector3 v)
v -
public final double x()
public final void x(double x)
x - public final double y()
public final void y(double y)
y - public final double z()
public final void z(double z)
z -
public static final csDVector3 add(csDVector3 v1,
csDVector3 v2)
v1 - v2 -
public static final csDVector3 minus(csDVector3 v1,
csDVector3 v2)
v1 - v2 -
public static final double mul(csDVector3 v1,
csDVector3 v2)
v1 - v2 -
public static final csDVector3 mod(csDVector3 v1,
csDVector3 v2)
v1 - v2 -
public static final csDVector3 mul(csDVector3 v,
double f)
v - f -
public static final csDVector3 mul(double f,
csDVector3 v)
f - v -
public static final csDVector3 div(csDVector3 v,
double f)
v - f -
public static final boolean equals(csDVector3 v1,
csDVector3 v2)
v1 - v2 -
public static final boolean nEquals(csDVector3 v1,
csDVector3 v2)
v1 - v2 -
public static final csDVector3 projectr(csDVector3 v1,
csDVector3 v2)
v1 - v2 -
public static final csDVector3 projectl(csDVector3 v1,
csDVector3 v2)
v1 - v2 -
public static final boolean less(csDVector3 v,
double f)
v - f -
public static boolean greater(double f,
csDVector3 v)
f - v -
public final boolean equals(java.lang.Object obj)
equals in class csNativeObjectObject.equals(java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||