2 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 /// Position is a three dimensional vector.
24 public class Position : global::System.IDisposable
26 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
27 protected bool swigCMemOwn;
29 internal Position(global::System.IntPtr cPtr, bool cMemoryOwn)
31 swigCMemOwn = cMemoryOwn;
32 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
35 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Position obj)
37 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
40 //A Flag to check who called Dispose(). (By User or DisposeQueue)
41 private bool isDisposeQueued = false;
42 //A Flat to check if it is already disposed.
43 protected bool disposed = false;
49 isDisposeQueued = true;
50 DisposeQueue.Instance.Add(this);
56 //Throw excpetion if Dispose() is called in separate thread.
57 if (!Window.IsInstalled())
59 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
64 Dispose(DisposeTypes.Implicit);
68 Dispose(DisposeTypes.Explicit);
69 System.GC.SuppressFinalize(this);
73 protected virtual void Dispose(DisposeTypes type)
80 if(type == DisposeTypes.Explicit)
83 //Release your own managed resources here.
84 //You should release all of your own disposable objects here.
87 //Release your own unmanaged resources here.
88 //You should not access any managed member here except static instance.
89 //because the execution order of Finalizes is non-deterministic.
91 if (swigCPtr.Handle != global::System.IntPtr.Zero)
96 NDalicPINVOKE.delete_Vector3(swigCPtr);
98 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
105 /// Addition operator.
107 /// <param name="arg1">Vector to add</param>
108 /// <param name="arg2">Vector to add</param>
109 /// <returns>A vector containing the result of the addition</returns>
110 public static Position operator +(Position arg1, Position arg2)
112 return arg1.Add(arg2);
116 /// Subtraction operator.
118 /// <param name="arg1">Vector to subtract</param>
119 /// <param name="arg2">Vector to subtract</param>
120 /// <returns>A vector containing the result of the subtraction</returns>
121 public static Position operator -(Position arg1, Position arg2)
123 return arg1.Subtract(arg2);
127 /// Unary negation operator.
129 /// <param name="arg1">Vector to netate</param>
130 /// <returns>A vector containg the negation</returns>
131 public static Position operator -(Position arg1)
133 return arg1.Subtract();
137 /// Multiplication operator.
139 /// <param name="arg1">The vector to multiply</param>
140 /// <param name="arg2">The vector to multiply</param>
141 /// <returns>A vector containing the result of the multiplication</returns>
142 public static Position operator *(Position arg1, Position arg2)
144 return arg1.Multiply(arg2);
148 /// Multiplication operator.
150 /// <param name="arg1">The vector to multiply</param>
151 /// <param name="arg2">The float value to scale the vector</param>
152 /// <returns>A vector containing the result of the scaling</returns>
153 public static Position operator *(Position arg1, float arg2)
155 return arg1.Multiply(arg2);
159 /// Division operator.
161 /// <param name="arg1">The vector to divide</param>
162 /// <param name="arg2">The vector to divide</param>
163 /// <returns>A vector containing the result of the division</returns>
164 public static Position operator /(Position arg1, Position arg2)
166 return arg1.Divide(arg2);
170 /// Division operator.
172 /// <param name="arg1">The vector to divide</param>
173 /// <param name="arg2">The float value to scale the vector by</param>
174 /// <returns>A vector containing the result of the scaling</returns>
175 public static Position operator /(Position arg1, float arg2)
177 return arg1.Divide(arg2);
182 /// Const array subscript operator overload. Should be 0, 1 or 2.
184 /// <param name="index">Subscript index</param>
185 /// <returns>The float at the given index</returns>
186 public float this[uint index]
190 return ValueOfIndex(index);
196 internal static Position GetPositionFromPtr(global::System.IntPtr cPtr)
198 Position ret = new Position(cPtr, false);
199 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
207 public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
209 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215 /// <param name="x">x component</param>
216 /// <param name="y">y component</param>
217 /// <param name="z">z component</param>
218 public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
220 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
226 /// <param name="position2d">Position2D to create this vector from</param>
227 public Position(Position2D position2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Position2D.getCPtr(position2d)), true)
229 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234 private Position Add(Position rhs)
236 Position ret = new Position(NDalicPINVOKE.Vector3_Add(swigCPtr, Position.getCPtr(rhs)), true);
237 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
241 private Position Subtract(Position rhs)
243 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
244 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
248 private Position Multiply(Position rhs)
250 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
251 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
255 private Position Multiply(float rhs)
257 Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
258 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
262 private Position Divide(Position rhs)
264 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
265 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
269 private Position Divide(float rhs)
271 Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
272 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
276 private Position Subtract()
278 Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
279 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
283 private float ValueOfIndex(uint index)
285 float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
291 /// Compare if rhs is equal to
293 /// <param name="rhs">The vector to compare</param>
294 /// <returns>Returns true if the two vectors are equal, otherwise false</returns>
295 public bool EqualTo(Position rhs)
297 bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Position.getCPtr(rhs));
298 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
303 /// Compare if rhs is not equal to
305 /// <param name="rhs">The vector to compare</param>
306 /// <returns>Returns true if the two vectors are not equal, otherwise false</returns>
307 public bool NotEqualTo(Position rhs)
309 bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Position.getCPtr(rhs));
310 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
322 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
323 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
327 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
328 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
340 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
341 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
345 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
346 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
358 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
359 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
364 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370 /// ParentOrigin constants. It's 0.0.
372 public static float ParentOriginTop
376 float ret = NDalicPINVOKE.ParentOriginTop_get();
377 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
383 /// ParentOrigin constants. It's 1.0.
385 public static float ParentOriginBottom
389 float ret = NDalicPINVOKE.ParentOriginBottom_get();
390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396 /// ParentOrigin constants. It's 0.0.
398 public static float ParentOriginLeft
402 float ret = NDalicPINVOKE.ParentOriginLeft_get();
403 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409 /// ParentOrigin constants. It's 1.0.
411 public static float ParentOriginRight
415 float ret = NDalicPINVOKE.ParentOriginRight_get();
416 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
422 /// ParentOrigin constants. It's 0.5.
424 public static float ParentOriginMiddle
428 float ret = NDalicPINVOKE.ParentOriginMiddle_get();
429 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435 /// ParentOrigin constants: 0.0, 0.0, 0.5
437 public static Position ParentOriginTopLeft
441 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
442 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
443 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
449 /// ParentOrigin constants: 0.5, 0.0, 0.5
451 public static Position ParentOriginTopCenter
455 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_get();
456 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
463 /// ParentOrigin constants: 1.0, 0.0, 0.5
465 public static Position ParentOriginTopRight
469 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
470 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
471 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477 /// ParentOrigin constants: 0.0, 0.5, 0.5
479 public static Position ParentOriginCenterLeft
483 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
484 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 /// ParentOrigin constants: 0.0, 0.5, 0.5
493 public static Position ParentOriginCenter
497 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
498 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
499 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
505 /// ParentOrigin constants: 1.0, 0.5, 0.5
507 public static Position ParentOriginCenterRight
511 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
512 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
513 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519 /// ParentOrigin constants: 0.0f, 1.0f, 0.5f
521 public static Position ParentOriginBottomLeft
525 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
526 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
527 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
533 /// ParentOrigin constants: 0.5, 1.0, 0.5
535 public static Position ParentOriginBottomCenter
539 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
540 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
547 /// ParentOrigin constants: 1.0, 1.0, 0.5
549 public static Position ParentOriginBottomRight
553 global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
554 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
561 /// PivotPoint constants: 0.0
563 public static float PivotPointTop
567 float ret = NDalicPINVOKE.AnchorPointTop_get();
568 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
574 /// PivotPoint constants: 1.0
576 public static float PivotPointBottom
580 float ret = NDalicPINVOKE.AnchorPointBottom_get();
581 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
587 /// PivotPoint constants: 0.0
589 public static float PivotPointLeft
593 float ret = NDalicPINVOKE.AnchorPointLeft_get();
594 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
600 /// PivotPoint constants: 1.0
602 public static float PivotPointRight
606 float ret = NDalicPINVOKE.AnchorPointRight_get();
607 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
613 /// PivotPoint constants: 0.0
615 public static float PivotPointMiddle
619 float ret = NDalicPINVOKE.AnchorPointMiddle_get();
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
626 /// PivotPoint constants: 0.0, 0.0, 0.5
628 public static Position PivotPointTopLeft
632 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
633 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
634 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
640 /// PivotPoint constants: 0.5, 0.0, 0.5
642 public static Position PivotPointTopCenter
646 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
647 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
648 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 /// PivotPoint constants: 1.0, 0.0, 0.5
656 public static Position PivotPointTopRight
660 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
661 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
662 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
668 /// PivotPoint constants: 0.0, 0.5, 0.5
670 public static Position PivotPointCenterLeft
674 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
675 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
676 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
682 /// PivotPoint constants: 0.5, 0.5, 0.5
684 public static Position PivotPointCenter
688 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
689 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
690 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
696 /// PivotPoint constants: 1.0, 0.5, 0.5
698 public static Position PivotPointCenterRight
702 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
703 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
704 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
710 /// PivotPoint constants: 0.0, 1.0, 0.5
712 public static Position PivotPointBottomLeft
716 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
717 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
718 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
724 /// PivotPoint constants: 0.5, 1.0, 0.5
726 public static Position PivotPointBottomCenter
730 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
731 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
732 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
738 /// PivotPoint constants: 1.0, 1.0, 0.5
740 public static Position PivotPointBottomRight
744 global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
745 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
746 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
752 /// Constant ( 1.0f, 1.0f, 1.0f )
754 public static Position One
758 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
759 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
760 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
765 internal static Position XAxis
769 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
770 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
771 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
776 internal static Position YAxis
780 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
781 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
782 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
787 internal static Position ZAxis
791 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
792 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
793 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
798 internal static Position NegativeXAxis
802 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
803 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
804 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
809 internal static Position NegativeYAxis
813 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
814 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
815 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
820 internal static Position NegativeZAxis
824 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
825 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
826 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
832 /// Constant ( 0.0f, 0.0f, 0.0f )
834 public static Position Zero
838 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
839 Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
840 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
846 /// Convert a position instance to a vector3 instance.
848 public static implicit operator Vector3(Position Position)
850 return new Vector3(Position.X, Position.Y, Position.Z);
854 /// Convert a vector3 instance to a position instance.
856 public static implicit operator Position(Vector3 vec)
858 return new Position(vec.X, vec.Y, vec.Z);