/
Rotation.cs
executable file
·575 lines (523 loc) · 24.4 KB
/
Rotation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
/*
* Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using System;
using System.ComponentModel;
using Tizen.NUI.Binding;
namespace Tizen.NUI
{
/// <summary>
/// The Rotation class.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[Binding.TypeConverter(typeof(RotationTypeConverter))]
public class Rotation : Disposable
{
/// <summary>
/// The default constructor.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public Rotation() : this(Interop.Rotation.NewRotation(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
/// The constructor from an axis and angle.
/// </summary>
/// <param name="angle">The angle around the axis.</param>
/// <param name="axis">The vector of the axis.</param>
/// <since_tizen> 3 </since_tizen>
public Rotation(Radian angle, Vector3 axis) : this(Interop.Rotation.NewRotation(Radian.getCPtr(angle), Vector3.getCPtr(axis)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
/// The constructor of Rotation which describes minimum rotation to align v0 with v1.
/// </summary>
/// <param name="v0">The first normalized vector.</param>
/// <param name="v1">The second normalized vector.</param>
/// <remarks>
/// v0 and v1 should be normalized.
/// </remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
public Rotation(Vector3 v0, Vector3 v1) : this(Interop.Rotation.NewRotation2(Vector3.getCPtr(v0), Vector3.getCPtr(v1)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
/// The constructor of Rotation from Euler angles.
/// </summary>
/// <param name="pitch">Pitch value as Radian.</param>
/// <param name="yaw">Yaw value as Radian</param>
/// <param name="roll">Roll value as Radian</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public Rotation(Radian pitch, Radian yaw, Radian roll) : this(Interop.Rotation.NewRotation3(Radian.getCPtr(pitch), Radian.getCPtr(yaw), Radian.getCPtr(roll)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
/// The constructor of Rotation from Quaternion Vector4.
/// </summary>
/// <param name="vector">Quaternion vector for Rotation.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public Rotation(Vector4 vector) : this(Interop.Rotation.NewRotation4(Vector4.getCPtr(vector)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
/// (0.0f,0.0f,0.0f,1.0f).
/// </summary>
/// <since_tizen> 3 </since_tizen>
public static Rotation IDENTITY
{
get
{
global::System.IntPtr cPtr = Interop.Rotation.IdentityGet();
Rotation ret = (cPtr == global::System.IntPtr.Zero) ? null : new Rotation(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
/// <summary>
/// The addition operator.
/// </summary>
/// <param name="arg1">The first rotation.</param>
/// <param name="arg2">The second rotation.</param>
/// <returns>The rotation containing the result of the addition.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation operator +(Rotation arg1, Rotation arg2)
{
return arg1?.Add(arg2);
}
/// <summary>
/// The subtraction operator.
/// </summary>
/// <param name="arg1">The first rotation.</param>
/// <param name="arg2">The second rotation.</param>
/// <returns>The rotation containing the result of the subtraction.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation operator -(Rotation arg1, Rotation arg2)
{
return arg1?.Subtract(arg2);
}
/// <summary>
/// The unary negation operator.
/// </summary>
/// <param name="arg1">The first rotation.</param>
/// <returns>The rotation containing the negated result.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation operator -(Rotation arg1)
{
return arg1?.Subtract();
}
/// <summary>
/// The multiplication operator.
/// </summary>
/// <param name="arg1">The first rotation.</param>
/// <param name="arg2">The second rotation.</param>
/// <returns>The rotation containing the result of the multiplication.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation operator *(Rotation arg1, Rotation arg2)
{
return arg1?.Multiply(arg2);
}
/// <summary>
/// The multiplication operator.
/// </summary>
/// <param name="arg1">Rotation.</param>
/// <param name="arg2">The vector to multiply.</param>
/// <returns>The rotation containing the result of the multiplication.</returns>
/// <since_tizen> 3 </since_tizen>
public static Vector3 operator *(Rotation arg1, Vector3 arg2)
{
return arg1?.Multiply(arg2);
}
/// <summary>
/// The scale operator.
/// </summary>
/// <param name="arg1">Rotation.</param>
/// <param name="arg2">A value to scale by.</param>
/// <returns>The rotation containing the result of scaling.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation operator *(Rotation arg1, float arg2)
{
return arg1?.Multiply(arg2);
}
/// <summary>
/// The division operator.
/// </summary>
/// <param name="arg1">The first rotation.</param>
/// <param name="arg2">The second rotation.</param>
/// <returns>The rotation containing the result of scaling.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation operator /(Rotation arg1, Rotation arg2)
{
return arg1?.Divide(arg2);
}
/// <summary>
/// The scale operator.
/// </summary>
/// <param name="arg1">Rotation.</param>
/// <param name="arg2">A value to scale by.</param>
/// <returns>The rotation containing the result of scaling.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation operator /(Rotation arg1, float arg2)
{
return arg1?.Divide(arg2);
}
/// <summary>
/// Returns the dot product of two rotations.
/// </summary>
/// <param name="q1">The first rotation.</param>
/// <param name="q2">The second rotation.</param>
/// <returns>The dot product of the two rotations.</returns>
/// <since_tizen> 3 </since_tizen>
public static float Dot(Rotation q1, Rotation q2)
{
float ret = Interop.Rotation.Dot(Rotation.getCPtr(q1), Rotation.getCPtr(q2));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// The linear interpolation (using a straight line between the two rotations).
/// </summary>
/// <param name="q1">The start rotation.</param>
/// <param name="q2">The end rotation.</param>
/// <param name="t">A progress value between 0 and 1.</param>
/// <returns>The interpolated rotation.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation Lerp(Rotation q1, Rotation q2, float t)
{
Rotation ret = new Rotation(Interop.Rotation.Lerp(Rotation.getCPtr(q1), Rotation.getCPtr(q2), t), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// The spherical linear interpolation (using the shortest arc of a great circle between the two rotations).
/// </summary>
/// <param name="q1">The start rotation.</param>
/// <param name="q2">The end rotation.</param>
/// <param name="progress">A progress value between 0 and 1.</param>
/// <returns>The interpolated rotation.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation Slerp(Rotation q1, Rotation q2, float progress)
{
Rotation ret = new Rotation(Interop.Rotation.Slerp(Rotation.getCPtr(q1), Rotation.getCPtr(q2), progress), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// This version of slerp, used by squad, does not check for theta > 90.
/// </summary>
/// <param name="q1">The start rotation.</param>
/// <param name="q2">The end rotation.</param>
/// <param name="t">A progress value between 0 and 1.</param>
/// <returns>The interpolated rotation.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation SlerpNoInvert(Rotation q1, Rotation q2, float t)
{
Rotation ret = new Rotation(Interop.Rotation.SlerpNoInvert(Rotation.getCPtr(q1), Rotation.getCPtr(q2), t), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// The spherical cubic interpolation.
/// </summary>
/// <param name="start">The start rotation.</param>
/// <param name="end">The end rotation.</param>
/// <param name="ctrl1">The control rotation for q1.</param>
/// <param name="ctrl2">The control rotation for q2.</param>
/// <param name="t">A progress value between 0 and 1.</param>
/// <returns>The interpolated rotation.</returns>
/// <since_tizen> 3 </since_tizen>
public static Rotation Squad(Rotation start, Rotation end, Rotation ctrl1, Rotation ctrl2, float t)
{
Rotation ret = new Rotation(Interop.Rotation.Squad(Rotation.getCPtr(start), Rotation.getCPtr(end), Rotation.getCPtr(ctrl1), Rotation.getCPtr(ctrl2), t), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Returns the shortest angle between two rotations in radians.
/// </summary>
/// <param name="q1">The first rotation.</param>
/// <param name="q2">The second rotation.</param>
/// <returns>The angle between the two rotation.</returns>
/// <since_tizen> 3 </since_tizen>
public static float AngleBetween(Rotation q1, Rotation q2)
{
float ret = Interop.Rotation.AngleBetween(Rotation.getCPtr(q1), Rotation.getCPtr(q2));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Rotate a vector3 with the Rotation.
/// For example, if this Rotation has (0, 1, 0) rotation axis and Math.PI radian angle and the input vector is (1, 0, 0),
/// this Rotation method returns (-1, 0, 0) that is rotated along Y axis amount of Math.PI.
/// </summary>
/// <param name="vector">The vector of vector3 to be rotated with this Rotation</param>
/// <returns>Vector3 that is the rotation result of this rotation.</returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public Vector3 Rotate(Vector3 vector)
{
Vector3 ret = new Vector3(Interop.Rotation.RotateVector3(SwigCPtr, Vector3.getCPtr(vector)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Rotate a vector4 with the Rotation.
/// For example, if this Rotation has (0, 1, 0) rotation axis and Math.PI radian angle and the input vector is (1, 0, 0, 0),
/// this Rotation method returns (-1, 0, 0, 0) that is rotated along Y axis amount of Math.PI.
/// </summary>
/// <param name="vector">The vector of vector4 to be rotated with this Rotation</param>
/// <returns>Vector4 that is the rotation result of this rotation.</returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public Vector4 Rotate(Vector4 vector)
{
Vector4 ret = new Vector4(Interop.Rotation.RotateVector4(SwigCPtr, Vector4.getCPtr(vector)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Helper to check if this is an identity quaternion.
/// </summary>
/// <returns>True if this is identity quaternion.</returns>
/// <since_tizen> 3 </since_tizen>
public bool IsIdentity()
{
bool ret = Interop.Rotation.IsIdentity(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Converts the quaternion to an axis or angle pair.
/// </summary>
/// <param name="axis">The result of an axis.</param>
/// <param name="angle">The result of angle in radians.</param>
/// <returns>True if converted correctly.</returns>
/// <since_tizen> 3 </since_tizen>
public bool GetAxisAngle(Vector3 axis, Radian angle)
{
bool ret = Interop.Rotation.GetAxisAngle(SwigCPtr, Vector3.getCPtr(axis), Radian.getCPtr(angle));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Set the quaternion from Euler angles.
/// </summary>
/// <param name="pitch">Pitch value as Radian.</param>
/// <param name="yaw">Yaw value as Radian</param>
/// <param name="roll">Roll value as Radian</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetEulerAngle(Radian pitch, Radian yaw, Radian roll)
{
Interop.Rotation.SetEulerAngle(SwigCPtr, Radian.getCPtr(pitch), Radian.getCPtr(yaw), Radian.getCPtr(roll));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
/// Get the Euler angles from this quaternion.
/// </summary>
/// <param name="pitch">The result of pitch value as Radian.</param>
/// <param name="yaw">The result of yaw value as Radian</param>
/// <param name="roll">The result of roll value as Radian</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public void GetEulerAngle(Radian pitch, Radian yaw, Radian roll)
{
Interop.Rotation.GetEulerAngle(SwigCPtr, Radian.getCPtr(pitch), Radian.getCPtr(yaw), Radian.getCPtr(roll));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
/// Returns the length of the rotation.
/// </summary>
/// <returns>The length of the rotation.</returns>
/// <since_tizen> 3 </since_tizen>
public float Length()
{
float ret = Interop.Rotation.Length(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Returns the squared length of the rotation.
/// </summary>
/// <returns>The squared length of the rotation.</returns>
/// <since_tizen> 3 </since_tizen>
public float LengthSquared()
{
float ret = Interop.Rotation.LengthSquared(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Normalizes this to unit length.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public void Normalize()
{
Interop.Rotation.Normalize(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
/// Normalized.
/// </summary>
/// <returns>A normalized version of this rotation.</returns>
/// <since_tizen> 3 </since_tizen>
public Rotation Normalized()
{
Rotation ret = new Rotation(Interop.Rotation.Normalized(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Conjugates this rotation.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public void Conjugate()
{
Interop.Rotation.Conjugate(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
/// Inverts this rotation.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public void Invert()
{
Interop.Rotation.Invert(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
/// Performs the logarithm of a rotation.
/// </summary>
/// <returns>The rotation representing the logarithm.</returns>
/// <since_tizen> 3 </since_tizen>
public Rotation Log()
{
Rotation ret = new Rotation(Interop.Rotation.Log(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Performs an exponent.
/// </summary>
/// <returns>The rotation representing the exponent.</returns>
/// <since_tizen> 3 </since_tizen>
public Rotation Exp()
{
Rotation ret = new Rotation(Interop.Rotation.Exp(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal Rotation(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
{
}
/// This will not be public opened.
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
{
Interop.Rotation.DeleteRotation(swigCPtr);
}
private Rotation Add(Rotation other)
{
Rotation ret = new Rotation(Interop.Rotation.Add(SwigCPtr, Rotation.getCPtr(other)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation Subtract(Rotation other)
{
Rotation ret = new Rotation(Interop.Rotation.Subtract(SwigCPtr, Rotation.getCPtr(other)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation Multiply(Rotation other)
{
Rotation ret = new Rotation(Interop.Rotation.MultiplyQuaternion(SwigCPtr, Rotation.getCPtr(other)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Vector3 Multiply(Vector3 other)
{
Vector3 ret = new Vector3(Interop.Rotation.MultiplyVector3(SwigCPtr, Vector3.getCPtr(other)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation Divide(Rotation other)
{
Rotation ret = new Rotation(Interop.Rotation.Divide(SwigCPtr, Rotation.getCPtr(other)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation Multiply(float scale)
{
Rotation ret = new Rotation(Interop.Rotation.Multiply(SwigCPtr, scale), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation Divide(float scale)
{
Rotation ret = new Rotation(Interop.Rotation.Divide(SwigCPtr, scale), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation Subtract()
{
Rotation ret = new Rotation(Interop.Rotation.Subtract(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation AddAssign(Rotation other)
{
Rotation ret = new Rotation(Interop.Rotation.AddAssign(SwigCPtr, Rotation.getCPtr(other)), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation SubtractAssign(Rotation other)
{
Rotation ret = new Rotation(Interop.Rotation.SubtractAssign(SwigCPtr, Rotation.getCPtr(other)), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation MultiplyAssign(Rotation other)
{
Rotation ret = new Rotation(Interop.Rotation.MultiplyAssign(SwigCPtr, Rotation.getCPtr(other)), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation MultiplyAssign(float scale)
{
Rotation ret = new Rotation(Interop.Rotation.MultiplyAssign(SwigCPtr, scale), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private Rotation DivideAssign(float scale)
{
Rotation ret = new Rotation(Interop.Rotation.DivideAssign(SwigCPtr, scale), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private bool EqualTo(Rotation rhs)
{
bool ret = Interop.Rotation.EqualTo(SwigCPtr, Rotation.getCPtr(rhs));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private bool NotEqualTo(Rotation rhs)
{
bool ret = Interop.Rotation.NotEqualTo(SwigCPtr, Rotation.getCPtr(rhs));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
}