|
|||||||||||
| 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.vector4.csDVector4
A 4D vector.
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csDVector4()
Make a new vector. |
|
csDVector4(csDVector3 v)
Conversion from a 3 component vector. set W =0;. |
|
csDVector4(csDVector4 v)
Copy Constructor. |
|
csDVector4(csVector4 v)
Conversion from single precision vector to double. |
|
csDVector4(double m)
Make a new initialized vector. |
|
csDVector4(double ix,
double iy)
Make a new vector and initialize with the given values. |
|
csDVector4(double ix,
double iy,
double iz)
Make a new vector and initialize with the given values. |
|
csDVector4(double ix,
double iy,
double iz,
double iw)
Make a new vector and initialize with the given values. |
|
csDVector4(iPointer nPointer)
|
|
| Method Summary | |
csDVector4 |
add()
Unary + operator. |
csDVector4 |
add(csDVector4 v)
Add another vector to this vector. |
static csDVector4 |
add(csDVector4 v1,
csDVector4 v2)
Add two vectors. |
void |
cross(csDVector4 v1,
csDVector4 v2)
Take cross product of two vectors and put result in this vector. |
static csDVector4 |
div(csDVector4 v,
double f)
Divide a vector by a scalar. |
csDVector4 |
div(double f)
Divide this vector by a scalar. |
static boolean |
equals(csDVector4 v1,
csDVector4 v2)
Check if two vectors are equal. |
boolean |
equals(java.lang.Object obj)
Check if two vectors are equal. |
static boolean |
greater(double f,
csDVector4 v)
Test if each component of a vector is greater than a small epsilon value. |
protected boolean |
isNativePointerValidSafe(long pointer)
|
double |
item(int n)
Returns n-th component of the vector. |
void |
item(int n,
double f)
Set n-th component of the vector. |
static boolean |
less(csDVector4 v,
double f)
Test if each component of a vector is less than a small epsilon value. |
csDVector4 |
minus()
Unary - operator. |
csDVector4 |
minus(csDVector4 v)
Subtract another vector from this vector. |
static csDVector4 |
minus(csDVector4 v1,
csDVector4 v2)
Subtract two vectors. |
static csDVector4 |
mod(csDVector4 v1,
csDVector4 v2)
Take the cross product of two vectors. |
static double |
mul(csDVector4 v1,
csDVector4 v2)
Take the dot product of two vectors. |
static csDVector4 |
mul(csDVector4 v,
double f)
Multiply a vector and a scalar. |
csDVector4 |
mul(double f)
Multiply this vector by a scalar. |
static csDVector4 |
mul(double f,
csDVector4 v)
Multiply a vector and a scalar. |
protected void |
nDelete(long pointer)
|
static boolean |
nEquals(csDVector4 v1,
csDVector4 v2)
Check if two vectors are not equal. |
double |
norm()
Returns the norm of this vector. |
static double |
norm(csDVector4 v)
Returns the norm (magnitude) of a vector. |
void |
normalize()
Scale this vector to length = 1.0. |
static csDVector4 |
projectl(csDVector4 v1,
csDVector4 v2)
Project one vector onto another. |
static csDVector4 |
projectr(csDVector4 v1,
csDVector4 v2)
Project one vector onto another. |
void |
set(double sx,
double sy,
double sz,
double sw)
Set the value of this vector. |
double |
squaredNorm()
Returns the norm of this vector. |
csDVector4 |
unit()
Returns the unit vector in the direction of this vector. |
static csDVector4 |
unit(csDVector4 v)
Normalizes a vector to a unit vector. |
double |
w()
The W component of the vector. |
void |
w(double W)
The W component of the 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 csDVector4(iPointer nPointer)
nPointer - public csDVector4()
public csDVector4(double m)
m -
public csDVector4(double ix,
double iy)
ix - iy -
public csDVector4(double ix,
double iy,
double iz)
ix - iy - iz -
public csDVector4(double ix,
double iy,
double iz,
double iw)
ix - iy - iz - iw - public csDVector4(csDVector4 v)
v - public csDVector4(csVector4 v)
v - public csDVector4(csDVector3 v)
v - | Method Detail |
protected void nDelete(long pointer)
nDelete in class csNativeObjectcsNativeObject.nDelete(long)protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe in class csNativeObjectcsNativeObject.isNativePointerValidSafe(long)
public void cross(csDVector4 v1,
csDVector4 v2)
v1 - v2 - public static double norm(csDVector4 v)
v -
public double norm()
public void normalize()
public csDVector4 mul(double f)
public csDVector4 add()
public csDVector4 add(csDVector4 v)
v -
public csDVector4 minus()
public csDVector4 minus(csDVector4 v)
v -
public csDVector4 div(double f)
f -
public double item(int n)
n -
public void item(int n,
double f)
n -
public void set(double sx,
double sy,
double sz,
double sw)
sx - sy - sz - sw - public double squaredNorm()
public static csDVector4 unit(csDVector4 v)
v -
public csDVector4 unit()
public static csDVector4 mul(double f,
csDVector4 v)
f - v -
public static csDVector4 mul(csDVector4 v,
double f)
v - f -
public static double mul(csDVector4 v1,
csDVector4 v2)
v1 - v2 -
public static boolean nEquals(csDVector4 v1,
csDVector4 v2)
v1 - v2 -
public static csDVector4 mod(csDVector4 v1,
csDVector4 v2)
v1 - v2 -
public static csDVector4 add(csDVector4 v1,
csDVector4 v2)
v1 - v2 -
public static csDVector4 minus(csDVector4 v1,
csDVector4 v2)
v1 - v2 -
public static csDVector4 div(csDVector4 v,
double f)
v - f -
public static boolean less(csDVector4 v,
double f)
v - f -
public static csDVector4 projectl(csDVector4 v1,
csDVector4 v2)
v1 - v2 -
public static boolean equals(csDVector4 v1,
csDVector4 v2)
v1 - v2 -
public static boolean greater(double f,
csDVector4 v)
f - v -
public static csDVector4 projectr(csDVector4 v1,
csDVector4 v2)
v1 - v2 -
public double w()
public void w(double W)
W - public double x()
public void x(double X)
public double y()
public void y(double Y)
Y - public double z()
public void z(double Z)
Z - 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 | ||||||||||