Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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 aiVector3D : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiVector3D(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiVector3D obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiVector3D() {
  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_aiVector3D(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public aiVector3D() : this(AssimpPINVOKE.new_aiVector3D__SWIG_0(), true) {
  36. }
  37. public aiVector3D(float _x, float _y, float _z) : this(AssimpPINVOKE.new_aiVector3D__SWIG_1(_x, _y, _z), true) {
  38. }
  39. public aiVector3D(float _xyz) : this(AssimpPINVOKE.new_aiVector3D__SWIG_2(_xyz), true) {
  40. }
  41. public aiVector3D(aiVector3D o) : this(AssimpPINVOKE.new_aiVector3D__SWIG_3(aiVector3D.getCPtr(o)), true) {
  42. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  43. }
  44. public aiVector3D __addnset__(aiVector3D o) {
  45. aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___addnset__(swigCPtr, aiVector3D.getCPtr(o)), false);
  46. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  47. return ret;
  48. }
  49. public aiVector3D __subnset__(aiVector3D o) {
  50. aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___subnset__(swigCPtr, aiVector3D.getCPtr(o)), false);
  51. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  52. return ret;
  53. }
  54. public aiVector3D __mulnset__(float f) {
  55. aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___mulnset____SWIG_0(swigCPtr, f), false);
  56. return ret;
  57. }
  58. public aiVector3D __divnset__(float f) {
  59. aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___divnset__(swigCPtr, f), false);
  60. return ret;
  61. }
  62. public aiVector3D __mulnset__(aiMatrix3x3 mat) {
  63. aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___mulnset____SWIG_1(swigCPtr, aiMatrix3x3.getCPtr(mat)), false);
  64. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  65. return ret;
  66. }
  67. public aiVector3D __mulnset__(aiMatrix4x4 mat) {
  68. aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___mulnset____SWIG_2(swigCPtr, aiMatrix4x4.getCPtr(mat)), false);
  69. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  70. return ret;
  71. }
  72. public float __idx__(uint i) {
  73. float ret = AssimpPINVOKE.aiVector3D___idx____SWIG_0(swigCPtr, i);
  74. return ret;
  75. }
  76. public bool __equal__(aiVector3D other) {
  77. bool ret = AssimpPINVOKE.aiVector3D___equal__(swigCPtr, aiVector3D.getCPtr(other));
  78. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  79. return ret;
  80. }
  81. public bool __nequal__(aiVector3D other) {
  82. bool ret = AssimpPINVOKE.aiVector3D___nequal__(swigCPtr, aiVector3D.getCPtr(other));
  83. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  84. return ret;
  85. }
  86. public void Set(float pX, float pY, float pZ) {
  87. AssimpPINVOKE.aiVector3D_Set(swigCPtr, pX, pY, pZ);
  88. }
  89. public float SquareLength() {
  90. float ret = AssimpPINVOKE.aiVector3D_SquareLength(swigCPtr);
  91. return ret;
  92. }
  93. public float Length() {
  94. float ret = AssimpPINVOKE.aiVector3D_Length(swigCPtr);
  95. return ret;
  96. }
  97. public aiVector3D Normalize() {
  98. aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D_Normalize(swigCPtr), false);
  99. return ret;
  100. }
  101. public aiVector3D SymMul(aiVector3D o) {
  102. aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D_SymMul(swigCPtr, aiVector3D.getCPtr(o)), true);
  103. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  104. return ret;
  105. }
  106. public float x {
  107. set {
  108. AssimpPINVOKE.aiVector3D_x_set(swigCPtr, value);
  109. }
  110. get {
  111. float ret = AssimpPINVOKE.aiVector3D_x_get(swigCPtr);
  112. return ret;
  113. }
  114. }
  115. public float y {
  116. set {
  117. AssimpPINVOKE.aiVector3D_y_set(swigCPtr, value);
  118. }
  119. get {
  120. float ret = AssimpPINVOKE.aiVector3D_y_get(swigCPtr);
  121. return ret;
  122. }
  123. }
  124. public float z {
  125. set {
  126. AssimpPINVOKE.aiVector3D_z_set(swigCPtr, value);
  127. }
  128. get {
  129. float ret = AssimpPINVOKE.aiVector3D_z_get(swigCPtr);
  130. return ret;
  131. }
  132. }
  133. }