|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Matrix4
public class Matrix4
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Matrix4()
Default constructor. |
|
Matrix4(float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33)
|
|
Matrix4(IMatrix3 m3x3)
Creates a standard 4x4 transformation matrix with a zero translation part from a rotation/scaling 3x3 matrix. |
|
Matrix4(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Matrix4(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Matrix4(IQuaternion rot)
Creates a standard 4x4 transformation matrix with a zero translation part from a rotation/scaling . |
|
Matrix4(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
adjoint(IMatrix4 returnValue)
|
void |
concatenate(IMatrix4 returnValue,
IMatrix4 m2)
|
void |
concatenateAffine(IMatrix4 returnValue,
IMatrix4 m2)
Concatenate two affine matrix. |
void |
delete()
Deletes the corresponding C++ object. |
float |
determinant()
|
void |
extract3x3Matrix(IMatrix3 m3x3)
Extracts the rotation / scaling part of the Matrix as a 3x3 matrix. |
void |
extractQuaternion(IQuaternion returnValue)
Extracts the rotation / scaling part as a quaternion from the Matrix. |
void |
finalize()
|
static IMatrix4 |
getCLIPSPACE2DTOIMAGESPACE()
|
static IMatrix4 |
getIDENTITY()
|
static void |
getScale(IMatrix4 returnValue,
float s_x,
float s_y,
float s_z)
Gets a scale matrix - variation for not using a vector. |
static void |
getScale(IMatrix4 returnValue,
IVector3 v)
Gets a scale matrix. |
static void |
getTrans(IMatrix4 returnValue,
float t_x,
float t_y,
float t_z)
Gets a translation matrix - variation for not using a vector. |
static void |
getTrans(IMatrix4 returnValue,
IVector3 v)
Gets a translation matrix. |
void |
getTrans(IVector3 returnValue)
Extracts the translation transformation part of the matrix. |
static IMatrix4 |
getZERO()
|
boolean |
hasNegativeScale()
Determines if this matrix involves a negative scaling. |
boolean |
hasScale()
Determines if this matrix involves a scaling. |
void |
inverse(IMatrix4 returnValue)
|
void |
inverseAffine(IMatrix4 returnValue)
Returns the inverse of the affine matrix. |
boolean |
isAffine()
Check whether or not the matrix is affine matrix. |
void |
makeInverseTransform(IVector3 position,
IVector3 scale,
IQuaternion orientation)
Building an inverse from orientation / scale / position. |
void |
makeTrans(float tx,
float ty,
float tz)
|
void |
makeTrans(IVector3 v)
Builds a translation matrix |
void |
makeTransform(IVector3 position,
IVector3 scale,
IQuaternion orientation)
Building a from orientation / scale / position. |
void |
operatorAddition(IMatrix4 returnValue,
IMatrix4 m2)
Matrix addition. |
void |
operatorAssignment(IMatrix3 mat3)
Assignment from 3x3 matrix. |
boolean |
operatorEqual(IMatrix4 m2)
Tests 2 matrices for equality. |
FloatPointer |
operatorIndex_const(int iRow)
|
FloatPointer |
operatorIndex(int iRow)
|
void |
operatorMultiplication(IMatrix4 returnValue,
float scalar)
|
void |
operatorMultiplication(IMatrix4 returnValue,
IMatrix4 m2)
Matrix concatenation using '*'. |
void |
operatorMultiplication(IPlane returnValue,
IPlane p)
|
void |
operatorMultiplication(IVector3 returnValue,
IVector3 v)
Vector transformation using '*'. |
void |
operatorMultiplication(IVector4 returnValue,
IVector4 v)
|
boolean |
operatorNotEqual(IMatrix4 m2)
Tests 2 matrices for inequality. |
void |
operatorSubtraction(IMatrix4 returnValue,
IMatrix4 m2)
Matrix subtraction. |
void |
setScale(IVector3 v)
Sets the scale part of the matrix. |
void |
setTrans(IVector3 v)
Sets the translation transformation part of the matrix. |
void |
transformAffine(IVector3 returnValue,
IVector3 v)
3-D Vector transformation specially for affine matrix. |
void |
transformAffine(IVector4 returnValue,
IVector4 v)
4-D Vector transformation specially for affine matrix. |
void |
transpose(IMatrix4 returnValue)
|
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public Matrix4(InstancePointer p)
protected Matrix4(InstancePointer p,
boolean remote)
public Matrix4(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Matrix4()
public Matrix4(float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33)
public Matrix4(IMatrix3 m3x3)
public Matrix4(IQuaternion rot)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic FloatPointer operatorIndex(int iRow)
operatorIndex in interface IMatrix4public FloatPointer operatorIndex_const(int iRow)
operatorIndex_const in interface IMatrix4
public void concatenate(IMatrix4 returnValue,
IMatrix4 m2)
concatenate in interface IMatrix4
public void operatorMultiplication(IMatrix4 returnValue,
IMatrix4 m2)
operatorMultiplication in interface IMatrix4
public void operatorMultiplication(IVector3 returnValue,
IVector3 v)
operatorMultiplication in interface IMatrix4
public void operatorMultiplication(IVector4 returnValue,
IVector4 v)
operatorMultiplication in interface IMatrix4
public void operatorMultiplication(IPlane returnValue,
IPlane p)
operatorMultiplication in interface IMatrix4
public void operatorAddition(IMatrix4 returnValue,
IMatrix4 m2)
operatorAddition in interface IMatrix4
public void operatorSubtraction(IMatrix4 returnValue,
IMatrix4 m2)
operatorSubtraction in interface IMatrix4public boolean operatorEqual(IMatrix4 m2)
operatorEqual in interface IMatrix4public boolean operatorNotEqual(IMatrix4 m2)
operatorNotEqual in interface IMatrix4public void operatorAssignment(IMatrix3 mat3)
operatorAssignment in interface IMatrix4public void transpose(IMatrix4 returnValue)
transpose in interface IMatrix4public void setTrans(IVector3 v)
setTrans in interface IMatrix4public void getTrans(IVector3 returnValue)
getTrans in interface IMatrix4public void makeTrans(IVector3 v)
makeTrans in interface IMatrix4
public void makeTrans(float tx,
float ty,
float tz)
makeTrans in interface IMatrix4public void setScale(IVector3 v)
setScale in interface IMatrix4public void extract3x3Matrix(IMatrix3 m3x3)
extract3x3Matrix in interface IMatrix4public boolean hasScale()
hasScale in interface IMatrix4public boolean hasNegativeScale()
hasNegativeScale in interface IMatrix4public void extractQuaternion(IQuaternion returnValue)
extractQuaternion in interface IMatrix4
public void operatorMultiplication(IMatrix4 returnValue,
float scalar)
operatorMultiplication in interface IMatrix4public void adjoint(IMatrix4 returnValue)
adjoint in interface IMatrix4public float determinant()
determinant in interface IMatrix4public void inverse(IMatrix4 returnValue)
inverse in interface IMatrix4
public void makeTransform(IVector3 position,
IVector3 scale,
IQuaternion orientation)
makeTransform in interface IMatrix4
public void makeInverseTransform(IVector3 position,
IVector3 scale,
IQuaternion orientation)
makeInverseTransform in interface IMatrix4public boolean isAffine()
isAffine in interface IMatrix4public void inverseAffine(IMatrix4 returnValue)
inverseAffine in interface IMatrix4
public void concatenateAffine(IMatrix4 returnValue,
IMatrix4 m2)
concatenateAffine in interface IMatrix4
public void transformAffine(IVector3 returnValue,
IVector3 v)
transformAffine in interface IMatrix4
public void transformAffine(IVector4 returnValue,
IVector4 v)
transformAffine in interface IMatrix4
public static void getTrans(IMatrix4 returnValue,
IVector3 v)
public static void getTrans(IMatrix4 returnValue,
float t_x,
float t_y,
float t_z)
public static void getScale(IMatrix4 returnValue,
IVector3 v)
public static void getScale(IMatrix4 returnValue,
float s_x,
float s_y,
float s_z)
public static IMatrix4 getZERO()
public static IMatrix4 getIDENTITY()
public static IMatrix4 getCLIPSPACE2DTOIMAGESPACE()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||