Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

327 Zeilen
10 KiB

  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.8
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. using System;
  9. using System.Runtime.InteropServices;
  10. public class aiMatrix4x4 : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiMatrix4x4(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiMatrix4x4 obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiMatrix4x4() {
  21. Dispose();
  22. }
  23. public virtual void Dispose() {
  24. lock(this) {
  25. if (swigCPtr.Handle != IntPtr.Zero) {
  26. if (swigCMemOwn) {
  27. swigCMemOwn = false;
  28. AssimpPINVOKE.delete_aiMatrix4x4(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public aiMatrix4x4() : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_0(), true) {
  36. }
  37. 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) {
  38. }
  39. public aiMatrix4x4(aiMatrix3x3 m) : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_2(aiMatrix3x3.getCPtr(m)), true) {
  40. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  41. }
  42. public SWIGTYPE_p_float __idx__(uint p_iIndex) {
  43. IntPtr cPtr = AssimpPINVOKE.aiMatrix4x4___idx____SWIG_0(swigCPtr, p_iIndex);
  44. SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
  45. return ret;
  46. }
  47. public bool __equal__(aiMatrix4x4 m) {
  48. bool ret = AssimpPINVOKE.aiMatrix4x4___equal__(swigCPtr, aiMatrix4x4.getCPtr(m));
  49. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  50. return ret;
  51. }
  52. public bool __nequal__(aiMatrix4x4 m) {
  53. bool ret = AssimpPINVOKE.aiMatrix4x4___nequal__(swigCPtr, aiMatrix4x4.getCPtr(m));
  54. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  55. return ret;
  56. }
  57. public aiMatrix4x4 __mulnset__(aiMatrix4x4 m) {
  58. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4___mulnset__(swigCPtr, aiMatrix4x4.getCPtr(m)), false);
  59. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  60. return ret;
  61. }
  62. public aiMatrix4x4 __mul__(aiMatrix4x4 m) {
  63. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4___mul__(swigCPtr, aiMatrix4x4.getCPtr(m)), true);
  64. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  65. return ret;
  66. }
  67. public aiMatrix4x4 Transpose() {
  68. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Transpose(swigCPtr), false);
  69. return ret;
  70. }
  71. public aiMatrix4x4 Inverse() {
  72. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Inverse(swigCPtr), false);
  73. return ret;
  74. }
  75. public float Determinant() {
  76. float ret = AssimpPINVOKE.aiMatrix4x4_Determinant(swigCPtr);
  77. return ret;
  78. }
  79. public bool IsIdentity() {
  80. bool ret = AssimpPINVOKE.aiMatrix4x4_IsIdentity(swigCPtr);
  81. return ret;
  82. }
  83. public void Decompose(aiVector3D scaling, aiQuaternion rotation, aiVector3D position) {
  84. AssimpPINVOKE.aiMatrix4x4_Decompose(swigCPtr, aiVector3D.getCPtr(scaling), aiQuaternion.getCPtr(rotation), aiVector3D.getCPtr(position));
  85. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  86. }
  87. public void DecomposeNoScaling(aiQuaternion rotation, aiVector3D position) {
  88. AssimpPINVOKE.aiMatrix4x4_DecomposeNoScaling(swigCPtr, aiQuaternion.getCPtr(rotation), aiVector3D.getCPtr(position));
  89. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  90. }
  91. public aiMatrix4x4 FromEulerAnglesXYZ(float x, float y, float z) {
  92. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromEulerAnglesXYZ__SWIG_0(swigCPtr, x, y, z), false);
  93. return ret;
  94. }
  95. public aiMatrix4x4 FromEulerAnglesXYZ(aiVector3D blubb) {
  96. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromEulerAnglesXYZ__SWIG_1(swigCPtr, aiVector3D.getCPtr(blubb)), false);
  97. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  98. return ret;
  99. }
  100. public static aiMatrix4x4 RotationX(float a, aiMatrix4x4 arg1) {
  101. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationX(a, aiMatrix4x4.getCPtr(arg1)), false);
  102. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  103. return ret;
  104. }
  105. public static aiMatrix4x4 RotationY(float a, aiMatrix4x4 arg1) {
  106. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationY(a, aiMatrix4x4.getCPtr(arg1)), false);
  107. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  108. return ret;
  109. }
  110. public static aiMatrix4x4 RotationZ(float a, aiMatrix4x4 arg1) {
  111. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationZ(a, aiMatrix4x4.getCPtr(arg1)), false);
  112. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  113. return ret;
  114. }
  115. public static aiMatrix4x4 Rotation(float a, aiVector3D axis, aiMatrix4x4 arg2) {
  116. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Rotation(a, aiVector3D.getCPtr(axis), aiMatrix4x4.getCPtr(arg2)), false);
  117. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  118. return ret;
  119. }
  120. public static aiMatrix4x4 Translation(aiVector3D v, aiMatrix4x4 arg1) {
  121. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Translation(aiVector3D.getCPtr(v), aiMatrix4x4.getCPtr(arg1)), false);
  122. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  123. return ret;
  124. }
  125. public static aiMatrix4x4 Scaling(aiVector3D v, aiMatrix4x4 arg1) {
  126. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Scaling(aiVector3D.getCPtr(v), aiMatrix4x4.getCPtr(arg1)), false);
  127. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  128. return ret;
  129. }
  130. public static aiMatrix4x4 FromToMatrix(aiVector3D from, aiVector3D to, aiMatrix4x4 arg2) {
  131. aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromToMatrix(aiVector3D.getCPtr(from), aiVector3D.getCPtr(to), aiMatrix4x4.getCPtr(arg2)), false);
  132. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  133. return ret;
  134. }
  135. public float a1 {
  136. set {
  137. AssimpPINVOKE.aiMatrix4x4_a1_set(swigCPtr, value);
  138. }
  139. get {
  140. float ret = AssimpPINVOKE.aiMatrix4x4_a1_get(swigCPtr);
  141. return ret;
  142. }
  143. }
  144. public float a2 {
  145. set {
  146. AssimpPINVOKE.aiMatrix4x4_a2_set(swigCPtr, value);
  147. }
  148. get {
  149. float ret = AssimpPINVOKE.aiMatrix4x4_a2_get(swigCPtr);
  150. return ret;
  151. }
  152. }
  153. public float a3 {
  154. set {
  155. AssimpPINVOKE.aiMatrix4x4_a3_set(swigCPtr, value);
  156. }
  157. get {
  158. float ret = AssimpPINVOKE.aiMatrix4x4_a3_get(swigCPtr);
  159. return ret;
  160. }
  161. }
  162. public float a4 {
  163. set {
  164. AssimpPINVOKE.aiMatrix4x4_a4_set(swigCPtr, value);
  165. }
  166. get {
  167. float ret = AssimpPINVOKE.aiMatrix4x4_a4_get(swigCPtr);
  168. return ret;
  169. }
  170. }
  171. public float b1 {
  172. set {
  173. AssimpPINVOKE.aiMatrix4x4_b1_set(swigCPtr, value);
  174. }
  175. get {
  176. float ret = AssimpPINVOKE.aiMatrix4x4_b1_get(swigCPtr);
  177. return ret;
  178. }
  179. }
  180. public float b2 {
  181. set {
  182. AssimpPINVOKE.aiMatrix4x4_b2_set(swigCPtr, value);
  183. }
  184. get {
  185. float ret = AssimpPINVOKE.aiMatrix4x4_b2_get(swigCPtr);
  186. return ret;
  187. }
  188. }
  189. public float b3 {
  190. set {
  191. AssimpPINVOKE.aiMatrix4x4_b3_set(swigCPtr, value);
  192. }
  193. get {
  194. float ret = AssimpPINVOKE.aiMatrix4x4_b3_get(swigCPtr);
  195. return ret;
  196. }
  197. }
  198. public float b4 {
  199. set {
  200. AssimpPINVOKE.aiMatrix4x4_b4_set(swigCPtr, value);
  201. }
  202. get {
  203. float ret = AssimpPINVOKE.aiMatrix4x4_b4_get(swigCPtr);
  204. return ret;
  205. }
  206. }
  207. public float c1 {
  208. set {
  209. AssimpPINVOKE.aiMatrix4x4_c1_set(swigCPtr, value);
  210. }
  211. get {
  212. float ret = AssimpPINVOKE.aiMatrix4x4_c1_get(swigCPtr);
  213. return ret;
  214. }
  215. }
  216. public float c2 {
  217. set {
  218. AssimpPINVOKE.aiMatrix4x4_c2_set(swigCPtr, value);
  219. }
  220. get {
  221. float ret = AssimpPINVOKE.aiMatrix4x4_c2_get(swigCPtr);
  222. return ret;
  223. }
  224. }
  225. public float c3 {
  226. set {
  227. AssimpPINVOKE.aiMatrix4x4_c3_set(swigCPtr, value);
  228. }
  229. get {
  230. float ret = AssimpPINVOKE.aiMatrix4x4_c3_get(swigCPtr);
  231. return ret;
  232. }
  233. }
  234. public float c4 {
  235. set {
  236. AssimpPINVOKE.aiMatrix4x4_c4_set(swigCPtr, value);
  237. }
  238. get {
  239. float ret = AssimpPINVOKE.aiMatrix4x4_c4_get(swigCPtr);
  240. return ret;
  241. }
  242. }
  243. public float d1 {
  244. set {
  245. AssimpPINVOKE.aiMatrix4x4_d1_set(swigCPtr, value);
  246. }
  247. get {
  248. float ret = AssimpPINVOKE.aiMatrix4x4_d1_get(swigCPtr);
  249. return ret;
  250. }
  251. }
  252. public float d2 {
  253. set {
  254. AssimpPINVOKE.aiMatrix4x4_d2_set(swigCPtr, value);
  255. }
  256. get {
  257. float ret = AssimpPINVOKE.aiMatrix4x4_d2_get(swigCPtr);
  258. return ret;
  259. }
  260. }
  261. public float d3 {
  262. set {
  263. AssimpPINVOKE.aiMatrix4x4_d3_set(swigCPtr, value);
  264. }
  265. get {
  266. float ret = AssimpPINVOKE.aiMatrix4x4_d3_get(swigCPtr);
  267. return ret;
  268. }
  269. }
  270. public float d4 {
  271. set {
  272. AssimpPINVOKE.aiMatrix4x4_d4_set(swigCPtr, value);
  273. }
  274. get {
  275. float ret = AssimpPINVOKE.aiMatrix4x4_d4_get(swigCPtr);
  276. return ret;
  277. }
  278. }
  279. }