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.
18 using Tizen.NUI.Binding;
24 /// A three-dimensional vector.
26 /// <since_tizen> 3 </since_tizen>
27 [TypeConverter(typeof(Vector3TypeConverter))]
28 public class Vector3 : global::System.IDisposable
30 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
34 /// <since_tizen> 3 </since_tizen>
35 protected bool swigCMemOwn;
37 internal Vector3(global::System.IntPtr cPtr, bool cMemoryOwn)
39 swigCMemOwn = cMemoryOwn;
40 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
43 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Vector3 obj)
45 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
48 //A Flag to check who called Dispose(). (By User or DisposeQueue)
49 private bool isDisposeQueued = false;
52 /// A Flat to check if it is already disposed.
54 /// <since_tizen> 3 </since_tizen>
55 protected bool disposed = false;
60 /// <since_tizen> 3 </since_tizen>
65 isDisposeQueued = true;
66 DisposeQueue.Instance.Add(this);
73 /// <since_tizen> 3 </since_tizen>
76 //Throw excpetion if Dispose() is called in separate thread.
77 if (!Window.IsInstalled())
79 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
84 Dispose(DisposeTypes.Implicit);
88 Dispose(DisposeTypes.Explicit);
89 System.GC.SuppressFinalize(this);
96 /// <param name="type">The dispose type</param>
97 /// <since_tizen> 3 </since_tizen>
98 protected virtual void Dispose(DisposeTypes type)
105 if(type == DisposeTypes.Explicit)
108 //Release your own managed resources here.
109 //You should release all of your own disposable objects here.
112 //Release your own unmanaged resources here.
113 //You should not access any managed member here except static instance.
114 //because the execution order of Finalizes is non-deterministic.
116 if (swigCPtr.Handle != global::System.IntPtr.Zero)
121 NDalicPINVOKE.delete_Vector3(swigCPtr);
123 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
129 /// The addition operator.
131 /// <param name="arg1">The first value.</param>
132 /// <param name="arg2">The second value.</param>
133 /// <returns>The vector containing the result of the addition.</returns>
134 /// <since_tizen> 3 </since_tizen>
135 public static Vector3 operator +(Vector3 arg1, Vector3 arg2)
137 return arg1.Add(arg2);
141 /// The subtraction operator.
143 /// <param name="arg1">The first value.</param>
144 /// <param name="arg2">The second value.</param>
145 /// <returns>The vector containing the result of the subtraction.</returns>
146 /// <since_tizen> 3 </since_tizen>
147 public static Vector3 operator -(Vector3 arg1, Vector3 arg2)
149 return arg1.Subtract(arg2);
153 /// The unary negation operator.
155 /// <param name="arg1">The target value.</param>
156 /// <returns>The vector containg the negation.</returns>
157 /// <since_tizen> 3 </since_tizen>
158 public static Vector3 operator -(Vector3 arg1)
160 return arg1.Subtract();
164 /// The multiplication operator.
166 /// <param name="arg1">The first value.</param>
167 /// <param name="arg2">The second value.</param>
168 /// <returns>The vector containing the result of the multiplication.</returns>
169 /// <since_tizen> 3 </since_tizen>
170 public static Vector3 operator *(Vector3 arg1, Vector3 arg2)
172 return arg1.Multiply(arg2);
176 /// The multiplication operator.
178 /// <param name="arg1">The first value.</param>
179 /// <param name="arg2">The float value to scale the vector.</param>
180 /// <returns>The vector containing the result of the scaling.</returns>
181 /// <since_tizen> 3 </since_tizen>
182 public static Vector3 operator *(Vector3 arg1, float arg2)
184 return arg1.Multiply(arg2);
188 /// The division operator.
190 /// <param name="arg1">The first value.</param>
191 /// <param name="arg2">The second value.</param>
192 /// <returns>The vector containing the result of the division.</returns>
193 /// <since_tizen> 3 </since_tizen>
194 public static Vector3 operator /(Vector3 arg1, Vector3 arg2)
196 return arg1.Divide(arg2);
200 /// The division operator.
202 /// <param name="arg1">The first value.</param>
203 /// <param name="arg2">The float value to scale the vector by.</param>
204 /// <returns>The vector containing the result of the scaling.</returns>
205 /// <since_tizen> 3 </since_tizen>
206 public static Vector3 operator /(Vector3 arg1, float arg2)
208 return arg1.Divide(arg2);
212 /// An array subscript operator overload.
214 /// <param name="index">The subscript index.</param>
215 /// <returns>The float at the given index.</returns>
216 /// <since_tizen> 3 </since_tizen>
217 public float this[uint index]
221 return ValueOfIndex(index);
225 internal static Vector3 GetVector3FromPtr(global::System.IntPtr cPtr)
227 Vector3 ret = new Vector3(cPtr, false);
228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
235 /// <since_tizen> 3 </since_tizen>
236 public Vector3() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
238 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
242 /// The default constructor initializes the vector to 0.
244 /// <param name="x">The x (or width) component.</param>
245 /// <param name="y">The y (or height) component.</param>
246 /// <param name="z">The z (or depth) component.</param>
247 /// <since_tizen> 3 </since_tizen>
248 public Vector3(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
250 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
254 /// Conversion constructor from an array of three floats.
256 /// <param name="array">An array of xyz.</param>
257 /// <since_tizen> 3 </since_tizen>
258 public Vector3(float[] array) : this(NDalicPINVOKE.new_Vector3__SWIG_2(array), true)
260 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
266 /// <param name="vec2">Vector2 to create this vector from.</param>
267 /// <since_tizen> 3 </since_tizen>
268 public Vector3(Vector2 vec2) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Vector2.getCPtr(vec2)), true)
270 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
276 /// <param name="vec4">Vector4 to create this vector from.</param>
277 /// <since_tizen> 3 </since_tizen>
278 public Vector3(Vector4 vec4) : this(NDalicPINVOKE.new_Vector3__SWIG_4(Vector4.getCPtr(vec4)), true)
280 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284 /// (1.0f,1.0f,1.0f).
286 /// <since_tizen> 3 </since_tizen>
287 public static Vector3 One
291 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
292 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
293 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
299 /// The vector representing the x-axis.
301 /// <since_tizen> 3 </since_tizen>
302 public static Vector3 XAxis
306 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
307 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
308 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
314 /// The vector representing the y-axis.
316 /// <since_tizen> 3 </since_tizen>
317 public static Vector3 YAxis
321 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
322 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
323 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
329 /// The vector representing the z-axis.
331 /// <since_tizen> 3 </since_tizen>
332 public static Vector3 ZAxis
336 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
337 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
338 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
344 /// The vector representing the negative x-axis.
346 /// <since_tizen> 3 </since_tizen>
347 public static Vector3 NegativeXAxis
351 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
352 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
353 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
359 /// Th vector representing the negative y-axis.
361 /// <since_tizen> 3 </since_tizen>
362 public static Vector3 NegativeYAxis
366 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
367 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
368 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
374 /// The vector representing the negative z-axis.
376 /// <since_tizen> 3 </since_tizen>
377 public static Vector3 NegativeZAxis
381 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
382 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
383 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
389 /// (0.0f, 0.0f, 0.0f).
391 /// <since_tizen> 3 </since_tizen>
392 public static Vector3 Zero
396 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
397 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
398 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403 private Vector3 Add(Vector3 rhs)
405 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Add(swigCPtr, Vector3.getCPtr(rhs)), true);
406 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
410 private Vector3 AddAssign(Vector3 rhs)
412 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_AddAssign(swigCPtr, Vector3.getCPtr(rhs)), false);
413 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
417 private Vector3 Subtract(Vector3 rhs)
419 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
420 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424 private Vector3 SubtractAssign(Vector3 rhs)
426 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_SubtractAssign(swigCPtr, Vector3.getCPtr(rhs)), false);
427 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
431 private Vector3 Multiply(Vector3 rhs)
433 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
434 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
438 private Vector3 Multiply(float rhs)
440 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
441 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
445 private Vector3 MultiplyAssign(Vector3 rhs)
447 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), false);
448 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
452 private Vector3 MultiplyAssign(float rhs)
454 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_1(swigCPtr, rhs), false);
455 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
459 private Vector3 MultiplyAssign(Rotation rhs)
461 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_2(swigCPtr, Rotation.getCPtr(rhs)), false);
462 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
466 private Vector3 Divide(Vector3 rhs)
468 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
469 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
473 private Vector3 Divide(float rhs)
475 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
476 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
480 private Vector3 DivideAssign(Vector3 rhs)
482 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_DivideAssign__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), false);
483 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
487 private Vector3 DivideAssign(float rhs)
489 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_DivideAssign__SWIG_1(swigCPtr, rhs), false);
490 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494 private Vector3 Subtract()
496 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
497 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
501 private bool EqualTo(Vector3 rhs)
503 bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Vector3.getCPtr(rhs));
504 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
508 private bool NotEqualTo(Vector3 rhs)
510 bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Vector3.getCPtr(rhs));
511 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
515 private float ValueOfIndex(uint index)
517 float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
518 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
522 internal float Dot(Vector3 other)
524 float ret = NDalicPINVOKE.Vector3_Dot(swigCPtr, Vector3.getCPtr(other));
525 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
529 internal Vector3 Cross(Vector3 other)
531 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Cross(swigCPtr, Vector3.getCPtr(other)), true);
532 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
537 /// Returns the length of the vector.
539 /// <returns>The length of the vector.</returns>
540 /// <since_tizen> 3 </since_tizen>
541 public float Length()
543 float ret = NDalicPINVOKE.Vector3_Length(swigCPtr);
544 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
549 /// Returns the length of the vector squared.<br />
550 /// This is more efficient than Length() for threshold
551 /// testing as it avoids the use of a square root.<br />
553 /// <returns>The length of the vector squared.</returns>
554 /// <since_tizen> 3 </since_tizen>
555 public float LengthSquared()
557 float ret = NDalicPINVOKE.Vector3_LengthSquared(swigCPtr);
558 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563 /// Sets the vector to be unit length, whilst maintaining its direction.
565 /// <since_tizen> 3 </since_tizen>
566 public void Normalize()
568 NDalicPINVOKE.Vector3_Normalize(swigCPtr);
569 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573 /// Clamps the vector between minimum and maximum vectors.
575 /// <param name="min">The minimum vector.</param>
576 /// <param name="max">The maximum vector.</param>
577 /// <since_tizen> 3 </since_tizen>
578 public void Clamp(Vector3 min, Vector3 max)
580 NDalicPINVOKE.Vector3_Clamp(swigCPtr, Vector3.getCPtr(min), Vector3.getCPtr(max));
581 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
584 internal SWIGTYPE_p_float AsFloat()
586 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_AsFloat__SWIG_0(swigCPtr);
587 SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
588 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
593 /// Returns the x and y components (or width and height, or r and g) as a Vector2.
595 /// <returns>The partial vector contents as Vector2 (x,y).</returns>
596 /// <since_tizen> 3 </since_tizen>
597 public Vector2 GetVectorXY()
599 Vector2 ret = new Vector2(NDalicPINVOKE.Vector3_GetVectorXY__SWIG_0(swigCPtr), false);
600 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
605 /// Returns the y and z components (or height and depth, or g and b) as a Vector2.
607 /// <returns>The partial vector contents as Vector2 (y,z).</returns>
608 /// <since_tizen> 3 </since_tizen>
609 public Vector2 GetVectorYZ()
611 Vector2 ret = new Vector2(NDalicPINVOKE.Vector3_GetVectorYZ__SWIG_0(swigCPtr), false);
612 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
619 /// <since_tizen> 3 </since_tizen>
624 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
625 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
629 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
630 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
636 /// The width component.
638 /// <since_tizen> 3 </since_tizen>
643 NDalicPINVOKE.Vector3_Width_set(swigCPtr, value);
644 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
648 float ret = NDalicPINVOKE.Vector3_Width_get(swigCPtr);
649 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
655 /// The red component.
657 /// <since_tizen> 3 </since_tizen>
662 NDalicPINVOKE.Vector3_r_set(swigCPtr, value);
663 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
667 float ret = NDalicPINVOKE.Vector3_r_get(swigCPtr);
668 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
676 /// <since_tizen> 3 </since_tizen>
681 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
682 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
686 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
687 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
693 /// The height component.
695 /// <since_tizen> 3 </since_tizen>
700 NDalicPINVOKE.Vector3_Height_set(swigCPtr, value);
701 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
705 float ret = NDalicPINVOKE.Vector3_Height_get(swigCPtr);
706 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
712 /// The green component.
714 /// <since_tizen> 3 </since_tizen>
719 NDalicPINVOKE.Vector3_g_set(swigCPtr, value);
720 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
724 float ret = NDalicPINVOKE.Vector3_g_get(swigCPtr);
725 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
733 /// <since_tizen> 3 </since_tizen>
738 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
739 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
743 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
744 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
750 /// The depth component.
752 /// <since_tizen> 3 </since_tizen>
757 NDalicPINVOKE.Vector3_Depth_set(swigCPtr, value);
758 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
762 float ret = NDalicPINVOKE.Vector3_Depth_get(swigCPtr);
763 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
769 /// The blue component.
771 /// <since_tizen> 3 </since_tizen>
776 NDalicPINVOKE.Vector3_b_set(swigCPtr, value);
777 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
781 float ret = NDalicPINVOKE.Vector3_b_get(swigCPtr);
782 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();