1 //------------------------------------------------------------------------------
\r
2 // <auto-generated />
\r
4 // This file was automatically generated by SWIG (http://www.swig.org).
\r
7 // Do not make changes to this file unless you know what you are doing--modify
\r
8 // the SWIG interface file instead.
\r
9 //------------------------------------------------------------------------------
\r
14 public class Rotation : global::System.IDisposable
\r
16 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
17 protected bool swigCMemOwn;
\r
19 internal Rotation(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
21 swigCMemOwn = cMemoryOwn;
\r
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Rotation obj)
\r
27 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
32 DisposeQueue.Instance.Add(this);
\r
35 public virtual void Dispose()
\r
37 if (!Stage.IsInstalled())
\r
39 DisposeQueue.Instance.Add(this);
\r
45 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
49 swigCMemOwn = false;
\r
50 NDalicPINVOKE.delete_Rotation(swigCPtr);
\r
52 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
54 global::System.GC.SuppressFinalize(this);
\r
59 public static Rotation operator +(Rotation arg1, Rotation arg2)
\r
61 return arg1.Add(arg2);
\r
64 public static Rotation operator -(Rotation arg1, Rotation arg2)
\r
66 return arg1.Subtract(arg2);
\r
69 public static Rotation operator -(Rotation arg1)
\r
71 return arg1.Subtract();
\r
74 public static Rotation operator *(Rotation arg1, Rotation arg2)
\r
76 return arg1.Multiply(arg2);
\r
79 public static Vector3 operator *(Rotation arg1, Vector3 arg2)
\r
81 return arg1.Multiply(arg2);
\r
84 public static Rotation operator *(Rotation arg1, float arg2)
\r
86 return arg1.Multiply(arg2);
\r
89 public static Rotation operator /(Rotation arg1, Rotation arg2)
\r
91 return arg1.Divide(arg2);
\r
94 public static Rotation operator /(Rotation arg1, float arg2)
\r
96 return arg1.Divide(arg2);
\r
99 public Rotation() : this(NDalicPINVOKE.new_Rotation__SWIG_0(), true)
\r
101 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
104 public Rotation(Radian angle, Vector3 axis) : this(NDalicPINVOKE.new_Rotation__SWIG_1(Radian.getCPtr(angle), Vector3.getCPtr(axis)), true)
\r
106 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
109 public static Rotation IDENTITY
\r
113 global::System.IntPtr cPtr = NDalicPINVOKE.Rotation_IDENTITY_get();
\r
114 Rotation ret = (cPtr == global::System.IntPtr.Zero) ? null : new Rotation(cPtr, false);
\r
115 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
120 public bool IsIdentity()
\r
122 bool ret = NDalicPINVOKE.Rotation_IsIdentity(swigCPtr);
\r
123 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
127 public bool GetAxisAngle(Vector3 axis, Radian angle)
\r
129 bool ret = NDalicPINVOKE.Rotation_GetAxisAngle(swigCPtr, Vector3.getCPtr(axis), Radian.getCPtr(angle));
\r
130 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
134 private Rotation Add(Rotation other)
\r
136 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Add(swigCPtr, Rotation.getCPtr(other)), true);
\r
137 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
141 private Rotation Subtract(Rotation other)
\r
143 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Subtract__SWIG_0(swigCPtr, Rotation.getCPtr(other)), true);
\r
144 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
148 private Rotation Multiply(Rotation other)
\r
150 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Multiply__SWIG_0(swigCPtr, Rotation.getCPtr(other)), true);
\r
151 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
155 private Vector3 Multiply(Vector3 other)
\r
157 Vector3 ret = new Vector3(NDalicPINVOKE.Rotation_Multiply__SWIG_1(swigCPtr, Vector3.getCPtr(other)), true);
\r
158 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
162 private Rotation Divide(Rotation other)
\r
164 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Divide__SWIG_0(swigCPtr, Rotation.getCPtr(other)), true);
\r
165 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
169 private Rotation Multiply(float scale)
\r
171 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Multiply__SWIG_2(swigCPtr, scale), true);
\r
172 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
176 private Rotation Divide(float scale)
\r
178 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Divide__SWIG_1(swigCPtr, scale), true);
\r
179 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
183 private Rotation Subtract()
\r
185 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Subtract__SWIG_1(swigCPtr), true);
\r
186 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
190 private Rotation AddAssign(Rotation other)
\r
192 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_AddAssign(swigCPtr, Rotation.getCPtr(other)), false);
\r
193 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
197 private Rotation SubtractAssign(Rotation other)
\r
199 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_SubtractAssign(swigCPtr, Rotation.getCPtr(other)), false);
\r
200 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
204 private Rotation MultiplyAssign(Rotation other)
\r
206 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_MultiplyAssign__SWIG_0(swigCPtr, Rotation.getCPtr(other)), false);
\r
207 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
211 private Rotation MultiplyAssign(float scale)
\r
213 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_MultiplyAssign__SWIG_1(swigCPtr, scale), false);
\r
214 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
218 private Rotation DivideAssign(float scale)
\r
220 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_DivideAssign(swigCPtr, scale), false);
\r
221 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
225 private bool EqualTo(Rotation rhs)
\r
227 bool ret = NDalicPINVOKE.Rotation_EqualTo(swigCPtr, Rotation.getCPtr(rhs));
\r
228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
232 private bool NotEqualTo(Rotation rhs)
\r
234 bool ret = NDalicPINVOKE.Rotation_NotEqualTo(swigCPtr, Rotation.getCPtr(rhs));
\r
235 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
239 public float Length()
\r
241 float ret = NDalicPINVOKE.Rotation_Length(swigCPtr);
\r
242 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
246 public float LengthSquared()
\r
248 float ret = NDalicPINVOKE.Rotation_LengthSquared(swigCPtr);
\r
249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
253 public void Normalize()
\r
255 NDalicPINVOKE.Rotation_Normalize(swigCPtr);
\r
256 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
259 public Rotation Normalized()
\r
261 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Normalized(swigCPtr), true);
\r
262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
266 public void Conjugate()
\r
268 NDalicPINVOKE.Rotation_Conjugate(swigCPtr);
\r
269 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
272 public void Invert()
\r
274 NDalicPINVOKE.Rotation_Invert(swigCPtr);
\r
275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
278 public Rotation Log()
\r
280 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Log(swigCPtr), true);
\r
281 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
285 public Rotation Exp()
\r
287 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Exp(swigCPtr), true);
\r
288 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
292 public static float Dot(Rotation q1, Rotation q2)
\r
294 float ret = NDalicPINVOKE.Rotation_Dot(Rotation.getCPtr(q1), Rotation.getCPtr(q2));
\r
295 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
299 public static Rotation Lerp(Rotation q1, Rotation q2, float t)
\r
301 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Lerp(Rotation.getCPtr(q1), Rotation.getCPtr(q2), t), true);
\r
302 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
306 public static Rotation Slerp(Rotation q1, Rotation q2, float progress)
\r
308 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Slerp(Rotation.getCPtr(q1), Rotation.getCPtr(q2), progress), true);
\r
309 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
313 public static Rotation SlerpNoInvert(Rotation q1, Rotation q2, float t)
\r
315 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_SlerpNoInvert(Rotation.getCPtr(q1), Rotation.getCPtr(q2), t), true);
\r
316 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
320 public static Rotation Squad(Rotation start, Rotation end, Rotation ctrl1, Rotation ctrl2, float t)
\r
322 Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Squad(Rotation.getCPtr(start), Rotation.getCPtr(end), Rotation.getCPtr(ctrl1), Rotation.getCPtr(ctrl2), t), true);
\r
323 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
327 public static float AngleBetween(Rotation q1, Rotation q2)
\r
329 float ret = NDalicPINVOKE.Rotation_AngleBetween(Rotation.getCPtr(q1), Rotation.getCPtr(q2));
\r
330 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r