|
|||||||||||
| 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.transfrm.csTransform
A class which defines a transformation from one coordinate system to another.
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csTransform()
Initialize with the identity transformation. |
|
csTransform(csMatrix3 other2this,
csVector3 origin_pos)
Initialize with the given transformation. |
|
csTransform(iPointer nPointer)
Create a java csTransform object which points to the native csTransform nPointer. |
|
| Method Summary | |
csMatrix3 |
getO2T()
Get 'other' to 'this' transformation matrix. |
csVector3 |
getO2TTranslation()
Get 'world' to 'this' translation. |
csVector3 |
getOrigin()
Get origin of transformed coordinate system. |
static csTransform |
getReflect(csPlane3 pl)
Return a transform that represents a mirroring across a plane. |
void |
identity()
Reset this transform to the identity transform. |
boolean |
isIdentity()
Returns true if this transform is an identity transform. |
protected boolean |
isNativePointerValidSafe(long nPointer)
|
static csMatrix3 |
mul(csMatrix3 m,
csTransform t)
Multiply a matrix with the transformation matrix. |
static csPlane3 |
mul(csPlane3 p,
csTransform t)
Apply a transformation to a Plane. |
static csSphere |
mul(csSphere s,
csTransform t)
Apply a transformation to a sphere. |
static csMatrix3 |
mul(csTransform t,
csMatrix3 m)
Multiply a matrix with the transformation matrix. |
static csPlane3 |
mul(csTransform t,
csPlane3 p)
Apply a transformation to a Plane. |
static csTransform |
mul(csTransform t1,
csReversibleTransform t2)
Combine two transforms, rightmost first. |
static csSphere |
mul(csTransform t,
csSphere s)
Apply a transformation to a sphere. |
static csVector3 |
mul(csTransform t,
csVector3 v)
Apply a transformation to a 3D vector. |
static csVector3 |
mul(csVector3 v,
csTransform t)
Apply a transformation to a 3D vector. |
static csMatrix3 |
mule(csMatrix3 m,
csTransform t)
Multiply a matrix with the transformation matrix. |
static csPlane3 |
mule(csPlane3 p,
csTransform t)
Apply a transformation to a Plane. |
static csSphere |
mule(csSphere s,
csTransform t)
Apply a transformation to a sphere. |
static csVector3 |
mule(csVector3 v,
csTransform t)
Apply a transformation to a 3D vector. |
protected void |
nDelete(long pointer)
|
csPlane3 |
other2This(csPlane3 p)
Convert a plane in 'other' space to 'this' space. |
void |
other2This(csPlane3 p,
csVector3 point,
csPlane3 result)
Convert a plane in 'other' space to 'this' space. |
csSphere |
other2This(csSphere s)
Convert a sphere in 'other' space to 'this' space. |
csVector3 |
other2This(csVector3 v)
Transform vector in 'other' space v to a vector in 'this' space. |
csPlane3 |
other2ThisRelative(csPlane3 p)
Convert a plane in 'other' space to 'this' space. |
csVector3 |
other2ThisRelative(csVector3 v)
Convert vector v in 'other' space to a vector in 'this' space. |
void |
setO2T(csMatrix3 m)
Set 'other' to 'this' transformation matrix. |
void |
setO2TTranslation(csVector3 v)
Set 'world' to 'this' translation. |
void |
setOrigin(csVector3 v)
Set origin of transformed coordinate system. |
void |
translate(csVector3 v)
Move the 'other' to 'this' translation by a specified amount. |
| Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, equals, 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 csTransform(iPointer nPointer)
nPointer - public csTransform()
public csTransform(csMatrix3 other2this,
csVector3 origin_pos)
other2this - origin_pos - | 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 identity()
public final boolean isIdentity()
public final csMatrix3 getO2T()
public final csVector3 getO2TTranslation()
public final csVector3 getOrigin()
public final void setOrigin(csVector3 v)
v - public final void setO2T(csMatrix3 m)
m - public final void setO2TTranslation(csVector3 v)
v - public final void translate(csVector3 v)
v - public final csVector3 other2This(csVector3 v)
v -
public final csVector3 other2ThisRelative(csVector3 v)
v -
public final csPlane3 other2This(csPlane3 p)
p -
public final csPlane3 other2ThisRelative(csPlane3 p)
p -
public final void other2This(csPlane3 p,
csVector3 point,
csPlane3 result)
p - point - result - public final csSphere other2This(csSphere s)
s -
public static final csTransform getReflect(csPlane3 pl)
pl -
public static final csVector3 mul(csVector3 v,
csTransform t)
v - t -
public static final csVector3 mul(csTransform t,
csVector3 v)
t - v -
public static final csVector3 mule(csVector3 v,
csTransform t)
v - t -
public static final csPlane3 mul(csPlane3 p,
csTransform t)
p - t -
public static final csPlane3 mul(csTransform t,
csPlane3 p)
t - p -
public static final csPlane3 mule(csPlane3 p,
csTransform t)
p - t -
public static final csSphere mul(csSphere s,
csTransform t)
s - t -
public static final csSphere mul(csTransform t,
csSphere s)
t - s -
public static final csSphere mule(csSphere s,
csTransform t)
s - t -
public static final csMatrix3 mul(csMatrix3 m,
csTransform t)
m - t -
public static final csMatrix3 mul(csTransform t,
csMatrix3 m)
t - m -
public static final csMatrix3 mule(csMatrix3 m,
csTransform t)
m - t -
public static final csTransform mul(csTransform t1,
csReversibleTransform t2)
t1 - t2 -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||