|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- /* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.8
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
- using System;
- using System.Runtime.InteropServices;
-
- public class aiMatrix4x4 : IDisposable {
- private HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal aiMatrix4x4(IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new HandleRef(this, cPtr);
- }
-
- internal static HandleRef getCPtr(aiMatrix4x4 obj) {
- return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~aiMatrix4x4() {
- Dispose();
- }
-
- public virtual void Dispose() {
- lock(this) {
- if (swigCPtr.Handle != IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- AssimpPINVOKE.delete_aiMatrix4x4(swigCPtr);
- }
- swigCPtr = new HandleRef(null, IntPtr.Zero);
- }
- GC.SuppressFinalize(this);
- }
- }
-
- public aiMatrix4x4() : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_0(), true) {
- }
-
- public aiMatrix4x4(float _a1, float _a2, float _a3, float _a4, float _b1, float _b2, float _b3, float _b4, float _c1, float _c2, float _c3, float _c4, float _d1, float _d2, float _d3, float _d4) : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_1(_a1, _a2, _a3, _a4, _b1, _b2, _b3, _b4, _c1, _c2, _c3, _c4, _d1, _d2, _d3, _d4), true) {
- }
-
- public aiMatrix4x4(aiMatrix3x3 m) : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_2(aiMatrix3x3.getCPtr(m)), true) {
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public SWIGTYPE_p_float __idx__(uint p_iIndex) {
- IntPtr cPtr = AssimpPINVOKE.aiMatrix4x4___idx____SWIG_0(swigCPtr, p_iIndex);
- SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
- return ret;
- }
-
- public bool __equal__(aiMatrix4x4 m) {
- bool ret = AssimpPINVOKE.aiMatrix4x4___equal__(swigCPtr, aiMatrix4x4.getCPtr(m));
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool __nequal__(aiMatrix4x4 m) {
- bool ret = AssimpPINVOKE.aiMatrix4x4___nequal__(swigCPtr, aiMatrix4x4.getCPtr(m));
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public aiMatrix4x4 __mulnset__(aiMatrix4x4 m) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4___mulnset__(swigCPtr, aiMatrix4x4.getCPtr(m)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public aiMatrix4x4 __mul__(aiMatrix4x4 m) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4___mul__(swigCPtr, aiMatrix4x4.getCPtr(m)), true);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public aiMatrix4x4 Transpose() {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Transpose(swigCPtr), false);
- return ret;
- }
-
- public aiMatrix4x4 Inverse() {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Inverse(swigCPtr), false);
- return ret;
- }
-
- public float Determinant() {
- float ret = AssimpPINVOKE.aiMatrix4x4_Determinant(swigCPtr);
- return ret;
- }
-
- public bool IsIdentity() {
- bool ret = AssimpPINVOKE.aiMatrix4x4_IsIdentity(swigCPtr);
- return ret;
- }
-
- public void Decompose(aiVector3D scaling, aiQuaternion rotation, aiVector3D position) {
- AssimpPINVOKE.aiMatrix4x4_Decompose(swigCPtr, aiVector3D.getCPtr(scaling), aiQuaternion.getCPtr(rotation), aiVector3D.getCPtr(position));
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void DecomposeNoScaling(aiQuaternion rotation, aiVector3D position) {
- AssimpPINVOKE.aiMatrix4x4_DecomposeNoScaling(swigCPtr, aiQuaternion.getCPtr(rotation), aiVector3D.getCPtr(position));
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public aiMatrix4x4 FromEulerAnglesXYZ(float x, float y, float z) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromEulerAnglesXYZ__SWIG_0(swigCPtr, x, y, z), false);
- return ret;
- }
-
- public aiMatrix4x4 FromEulerAnglesXYZ(aiVector3D blubb) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromEulerAnglesXYZ__SWIG_1(swigCPtr, aiVector3D.getCPtr(blubb)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public static aiMatrix4x4 RotationX(float a, aiMatrix4x4 arg1) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationX(a, aiMatrix4x4.getCPtr(arg1)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public static aiMatrix4x4 RotationY(float a, aiMatrix4x4 arg1) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationY(a, aiMatrix4x4.getCPtr(arg1)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public static aiMatrix4x4 RotationZ(float a, aiMatrix4x4 arg1) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationZ(a, aiMatrix4x4.getCPtr(arg1)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public static aiMatrix4x4 Rotation(float a, aiVector3D axis, aiMatrix4x4 arg2) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Rotation(a, aiVector3D.getCPtr(axis), aiMatrix4x4.getCPtr(arg2)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public static aiMatrix4x4 Translation(aiVector3D v, aiMatrix4x4 arg1) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Translation(aiVector3D.getCPtr(v), aiMatrix4x4.getCPtr(arg1)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public static aiMatrix4x4 Scaling(aiVector3D v, aiMatrix4x4 arg1) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Scaling(aiVector3D.getCPtr(v), aiMatrix4x4.getCPtr(arg1)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public static aiMatrix4x4 FromToMatrix(aiVector3D from, aiVector3D to, aiMatrix4x4 arg2) {
- aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromToMatrix(aiVector3D.getCPtr(from), aiVector3D.getCPtr(to), aiMatrix4x4.getCPtr(arg2)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public float a1 {
- set {
- AssimpPINVOKE.aiMatrix4x4_a1_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_a1_get(swigCPtr);
- return ret;
- }
- }
-
- public float a2 {
- set {
- AssimpPINVOKE.aiMatrix4x4_a2_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_a2_get(swigCPtr);
- return ret;
- }
- }
-
- public float a3 {
- set {
- AssimpPINVOKE.aiMatrix4x4_a3_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_a3_get(swigCPtr);
- return ret;
- }
- }
-
- public float a4 {
- set {
- AssimpPINVOKE.aiMatrix4x4_a4_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_a4_get(swigCPtr);
- return ret;
- }
- }
-
- public float b1 {
- set {
- AssimpPINVOKE.aiMatrix4x4_b1_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_b1_get(swigCPtr);
- return ret;
- }
- }
-
- public float b2 {
- set {
- AssimpPINVOKE.aiMatrix4x4_b2_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_b2_get(swigCPtr);
- return ret;
- }
- }
-
- public float b3 {
- set {
- AssimpPINVOKE.aiMatrix4x4_b3_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_b3_get(swigCPtr);
- return ret;
- }
- }
-
- public float b4 {
- set {
- AssimpPINVOKE.aiMatrix4x4_b4_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_b4_get(swigCPtr);
- return ret;
- }
- }
-
- public float c1 {
- set {
- AssimpPINVOKE.aiMatrix4x4_c1_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_c1_get(swigCPtr);
- return ret;
- }
- }
-
- public float c2 {
- set {
- AssimpPINVOKE.aiMatrix4x4_c2_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_c2_get(swigCPtr);
- return ret;
- }
- }
-
- public float c3 {
- set {
- AssimpPINVOKE.aiMatrix4x4_c3_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_c3_get(swigCPtr);
- return ret;
- }
- }
-
- public float c4 {
- set {
- AssimpPINVOKE.aiMatrix4x4_c4_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_c4_get(swigCPtr);
- return ret;
- }
- }
-
- public float d1 {
- set {
- AssimpPINVOKE.aiMatrix4x4_d1_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_d1_get(swigCPtr);
- return ret;
- }
- }
-
- public float d2 {
- set {
- AssimpPINVOKE.aiMatrix4x4_d2_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_d2_get(swigCPtr);
- return ret;
- }
- }
-
- public float d3 {
- set {
- AssimpPINVOKE.aiMatrix4x4_d3_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_d3_get(swigCPtr);
- return ret;
- }
- }
-
- public float d4 {
- set {
- AssimpPINVOKE.aiMatrix4x4_d4_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiMatrix4x4_d4_get(swigCPtr);
- return ret;
- }
- }
-
- }
|