org.ogre4j
Class Matrix3

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.Matrix3
All Implemented Interfaces:
IMatrix3, INativeObject

public class Matrix3
extends NativeObject
implements IMatrix3


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  Matrix3()
          Default constructor.
  Matrix3(float fEntry00, float fEntry01, float fEntry02, float fEntry10, float fEntry11, float fEntry12, float fEntry20, float fEntry21, float fEntry22)
           
  Matrix3(IMatrix3 rkMatrix)
           
  Matrix3(InstancePointer p)
          This constructor is public for internal useage only!
protected Matrix3(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  Matrix3(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 float Determinant()
           
 void finalize()
           
 void FromAxes(IVector3 xAxis, IVector3 yAxis, IVector3 zAxis)
           
 void FromAxisAngle(IVector3 rkAxis, IRadian fRadians)
           
 void FromEulerAnglesXYZ(IRadian fYAngle, IRadian fPAngle, IRadian fRAngle)
           
 void FromEulerAnglesXZY(IRadian fYAngle, IRadian fPAngle, IRadian fRAngle)
           
 void FromEulerAnglesYXZ(IRadian fYAngle, IRadian fPAngle, IRadian fRAngle)
           
 void FromEulerAnglesYZX(IRadian fYAngle, IRadian fPAngle, IRadian fRAngle)
           
 void FromEulerAnglesZXY(IRadian fYAngle, IRadian fPAngle, IRadian fRAngle)
           
 void FromEulerAnglesZYX(IRadian fYAngle, IRadian fPAngle, IRadian fRAngle)
           
 void GetColumn(IVector3 returnValue, int iCol)
           
static float getEPSILON()
           
static IMatrix3 getIDENTITY()
           
static IMatrix3 getZERO()
           
 boolean hasScale()
          Determines if this matrix involves a scaling.
 void Inverse_rbv(IMatrix3 returnValue, float fTolerance)
           
 boolean Inverse(IMatrix3 rkInverse, float fTolerance)
           
 void operatorAddition(IMatrix3 returnValue, IMatrix3 rkMatrix)
           
 IMatrix3 operatorAssignment(IMatrix3 rkMatrix)
           
 boolean operatorEqual(IMatrix3 rkMatrix)
           
 FloatPointer operatorIndex(int iRow)
           
 void operatorMultiplication(IMatrix3 returnValue, float fScalar)
           
 void operatorMultiplication(IMatrix3 returnValue, IMatrix3 rkMatrix)
           
 void operatorMultiplication(IVector3 returnValue, IVector3 rkVector)
           
 boolean operatorNotEqual(IMatrix3 rkMatrix)
           
 void operatorSubtraction(IMatrix3 returnValue)
           
 void operatorSubtraction(IMatrix3 returnValue, IMatrix3 rkMatrix)
           
 void Orthonormalize()
           
 void QDUDecomposition(IMatrix3 rkQ, IVector3 rkD, IVector3 rkU)
           
 void SetColumn(int iCol, IVector3 vec)
           
 void SingularValueComposition(IMatrix3 rkL, IVector3 rkS, IMatrix3 rkR)
           
 void SingularValueDecomposition(IMatrix3 rkL, IVector3 rkS, IMatrix3 rkR)
           
 float SpectralNorm()
           
static void TensorProduct(IVector3 rkU, IVector3 rkV, IMatrix3 rkProduct)
           
 void ToAxisAngle(IVector3 rkAxis, IDegree rfAngle)
           
 void ToAxisAngle(IVector3 rkAxis, IRadian rfAngle)
           
 boolean ToEulerAnglesXYZ(IRadian rfYAngle, IRadian rfPAngle, IRadian rfRAngle)
           
 boolean ToEulerAnglesXZY(IRadian rfYAngle, IRadian rfPAngle, IRadian rfRAngle)
           
 boolean ToEulerAnglesYXZ(IRadian rfYAngle, IRadian rfPAngle, IRadian rfRAngle)
           
 boolean ToEulerAnglesYZX(IRadian rfYAngle, IRadian rfPAngle, IRadian rfRAngle)
           
 boolean ToEulerAnglesZXY(IRadian rfYAngle, IRadian rfPAngle, IRadian rfRAngle)
           
 boolean ToEulerAnglesZYX(IRadian rfYAngle, IRadian rfPAngle, IRadian rfRAngle)
           
 void Transpose(IMatrix3 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

Matrix3

public Matrix3(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


Matrix3

protected Matrix3(InstancePointer p,
                  boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


Matrix3

public Matrix3(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

Matrix3

public Matrix3()
Default constructor.


Matrix3

public Matrix3(IMatrix3 rkMatrix)

Matrix3

public Matrix3(float fEntry00,
               float fEntry01,
               float fEntry02,
               float fEntry10,
               float fEntry11,
               float fEntry12,
               float fEntry20,
               float fEntry21,
               float fEntry22)
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

operatorIndex

public FloatPointer operatorIndex(int iRow)
Specified by:
operatorIndex in interface IMatrix3

GetColumn

public void GetColumn(IVector3 returnValue,
                      int iCol)
Specified by:
GetColumn in interface IMatrix3

SetColumn

public void SetColumn(int iCol,
                      IVector3 vec)
Specified by:
SetColumn in interface IMatrix3

FromAxes

public void FromAxes(IVector3 xAxis,
                     IVector3 yAxis,
                     IVector3 zAxis)
Specified by:
FromAxes in interface IMatrix3

operatorAssignment

public IMatrix3 operatorAssignment(IMatrix3 rkMatrix)
Specified by:
operatorAssignment in interface IMatrix3

operatorEqual

public boolean operatorEqual(IMatrix3 rkMatrix)
Specified by:
operatorEqual in interface IMatrix3

operatorNotEqual

public boolean operatorNotEqual(IMatrix3 rkMatrix)
Specified by:
operatorNotEqual in interface IMatrix3

operatorAddition

public void operatorAddition(IMatrix3 returnValue,
                             IMatrix3 rkMatrix)
Specified by:
operatorAddition in interface IMatrix3

operatorSubtraction

public void operatorSubtraction(IMatrix3 returnValue,
                                IMatrix3 rkMatrix)
Specified by:
operatorSubtraction in interface IMatrix3

operatorMultiplication

public void operatorMultiplication(IMatrix3 returnValue,
                                   IMatrix3 rkMatrix)
Specified by:
operatorMultiplication in interface IMatrix3

operatorSubtraction

public void operatorSubtraction(IMatrix3 returnValue)
Specified by:
operatorSubtraction in interface IMatrix3

operatorMultiplication

public void operatorMultiplication(IVector3 returnValue,
                                   IVector3 rkVector)
Specified by:
operatorMultiplication in interface IMatrix3

operatorMultiplication

public void operatorMultiplication(IMatrix3 returnValue,
                                   float fScalar)
Specified by:
operatorMultiplication in interface IMatrix3

Transpose

public void Transpose(IMatrix3 returnValue)
Specified by:
Transpose in interface IMatrix3

Inverse

public boolean Inverse(IMatrix3 rkInverse,
                       float fTolerance)
Specified by:
Inverse in interface IMatrix3

Inverse_rbv

public void Inverse_rbv(IMatrix3 returnValue,
                        float fTolerance)
Specified by:
Inverse_rbv in interface IMatrix3

Determinant

public float Determinant()
Specified by:
Determinant in interface IMatrix3

SingularValueDecomposition

public void SingularValueDecomposition(IMatrix3 rkL,
                                       IVector3 rkS,
                                       IMatrix3 rkR)
Specified by:
SingularValueDecomposition in interface IMatrix3

SingularValueComposition

public void SingularValueComposition(IMatrix3 rkL,
                                     IVector3 rkS,
                                     IMatrix3 rkR)
Specified by:
SingularValueComposition in interface IMatrix3

Orthonormalize

public void Orthonormalize()
Specified by:
Orthonormalize in interface IMatrix3

QDUDecomposition

public void QDUDecomposition(IMatrix3 rkQ,
                             IVector3 rkD,
                             IVector3 rkU)
Specified by:
QDUDecomposition in interface IMatrix3

SpectralNorm

public float SpectralNorm()
Specified by:
SpectralNorm in interface IMatrix3

ToAxisAngle

public void ToAxisAngle(IVector3 rkAxis,
                        IRadian rfAngle)
Specified by:
ToAxisAngle in interface IMatrix3

ToAxisAngle

public void ToAxisAngle(IVector3 rkAxis,
                        IDegree rfAngle)
Specified by:
ToAxisAngle in interface IMatrix3

FromAxisAngle

public void FromAxisAngle(IVector3 rkAxis,
                          IRadian fRadians)
Specified by:
FromAxisAngle in interface IMatrix3

ToEulerAnglesXYZ

public boolean ToEulerAnglesXYZ(IRadian rfYAngle,
                                IRadian rfPAngle,
                                IRadian rfRAngle)
Specified by:
ToEulerAnglesXYZ in interface IMatrix3

ToEulerAnglesXZY

public boolean ToEulerAnglesXZY(IRadian rfYAngle,
                                IRadian rfPAngle,
                                IRadian rfRAngle)
Specified by:
ToEulerAnglesXZY in interface IMatrix3

ToEulerAnglesYXZ

public boolean ToEulerAnglesYXZ(IRadian rfYAngle,
                                IRadian rfPAngle,
                                IRadian rfRAngle)
Specified by:
ToEulerAnglesYXZ in interface IMatrix3

ToEulerAnglesYZX

public boolean ToEulerAnglesYZX(IRadian rfYAngle,
                                IRadian rfPAngle,
                                IRadian rfRAngle)
Specified by:
ToEulerAnglesYZX in interface IMatrix3

ToEulerAnglesZXY

public boolean ToEulerAnglesZXY(IRadian rfYAngle,
                                IRadian rfPAngle,
                                IRadian rfRAngle)
Specified by:
ToEulerAnglesZXY in interface IMatrix3

ToEulerAnglesZYX

public boolean ToEulerAnglesZYX(IRadian rfYAngle,
                                IRadian rfPAngle,
                                IRadian rfRAngle)
Specified by:
ToEulerAnglesZYX in interface IMatrix3

FromEulerAnglesXYZ

public void FromEulerAnglesXYZ(IRadian fYAngle,
                               IRadian fPAngle,
                               IRadian fRAngle)
Specified by:
FromEulerAnglesXYZ in interface IMatrix3

FromEulerAnglesXZY

public void FromEulerAnglesXZY(IRadian fYAngle,
                               IRadian fPAngle,
                               IRadian fRAngle)
Specified by:
FromEulerAnglesXZY in interface IMatrix3

FromEulerAnglesYXZ

public void FromEulerAnglesYXZ(IRadian fYAngle,
                               IRadian fPAngle,
                               IRadian fRAngle)
Specified by:
FromEulerAnglesYXZ in interface IMatrix3

FromEulerAnglesYZX

public void FromEulerAnglesYZX(IRadian fYAngle,
                               IRadian fPAngle,
                               IRadian fRAngle)
Specified by:
FromEulerAnglesYZX in interface IMatrix3

FromEulerAnglesZXY

public void FromEulerAnglesZXY(IRadian fYAngle,
                               IRadian fPAngle,
                               IRadian fRAngle)
Specified by:
FromEulerAnglesZXY in interface IMatrix3

FromEulerAnglesZYX

public void FromEulerAnglesZYX(IRadian fYAngle,
                               IRadian fPAngle,
                               IRadian fRAngle)
Specified by:
FromEulerAnglesZYX in interface IMatrix3

hasScale

public boolean hasScale()
Determines if this matrix involves a scaling.

Specified by:
hasScale in interface IMatrix3

TensorProduct

public static void TensorProduct(IVector3 rkU,
                                 IVector3 rkV,
                                 IMatrix3 rkProduct)

getEPSILON

public static float getEPSILON()

getZERO

public static IMatrix3 getZERO()

getIDENTITY

public static IMatrix3 getIDENTITY()


Copyright © 2007 netAllied GmbH. All Rights Reserved.