1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
21 /// A three-dimensional vector.
23 public class Vector3 : global::System.IDisposable
25 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
26 protected bool swigCMemOwn;
28 internal Vector3(global::System.IntPtr cPtr, bool cMemoryOwn)
30 swigCMemOwn = cMemoryOwn;
31 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Vector3 obj)
36 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
39 //A Flag to check who called Dispose(). (By User or DisposeQueue)
40 private bool isDisposeQueued = false;
41 //A Flat to check if it is already disposed.
42 protected bool disposed = false;
48 isDisposeQueued = true;
49 DisposeQueue.Instance.Add(this);
55 //Throw excpetion if Dispose() is called in separate thread.
56 if (!Window.IsInstalled())
58 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
63 Dispose(DisposeTypes.Implicit);
67 Dispose(DisposeTypes.Explicit);
68 System.GC.SuppressFinalize(this);
72 protected virtual void Dispose(DisposeTypes type)
79 if(type == DisposeTypes.Explicit)
82 //Release your own managed resources here.
83 //You should release all of your own disposable objects here.
86 //Release your own unmanaged resources here.
87 //You should not access any managed member here except static instance.
88 //because the execution order of Finalizes is non-deterministic.
90 if (swigCPtr.Handle != global::System.IntPtr.Zero)
95 NDalicPINVOKE.delete_Vector3(swigCPtr);
97 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
103 /// The addition operator.
105 /// <param name="arg1">The first value.</param>
106 /// <param name="arg2">The second value.</param>
107 /// <returns>The vector containing the result of the addition.</returns>
108 /// <since_tizen> 3 </since_tizen>
109 public static Vector3 operator +(Vector3 arg1, Vector3 arg2)
111 return arg1.Add(arg2);
115 /// The subtraction operator.
117 /// <param name="arg1">The first value.</param>
118 /// <param name="arg2">The second value.</param>
119 /// <returns>The vector containing the result of the subtraction.</returns>
120 /// <since_tizen> 3 </since_tizen>
121 public static Vector3 operator -(Vector3 arg1, Vector3 arg2)
123 return arg1.Subtract(arg2);
127 /// The unary negation operator.
129 /// <param name="arg1">The target value.</param>
130 /// <returns>The vector containg the negation.</returns>
131 /// <since_tizen> 3 </since_tizen>
132 public static Vector3 operator -(Vector3 arg1)
134 return arg1.Subtract();
138 /// The multiplication operator.
140 /// <param name="arg1">The first value.</param>
141 /// <param name="arg2">The second value.</param>
142 /// <returns>The vector containing the result of the multiplication.</returns>
143 /// <since_tizen> 3 </since_tizen>
144 public static Vector3 operator *(Vector3 arg1, Vector3 arg2)
146 return arg1.Multiply(arg2);
150 /// The multiplication operator.
152 /// <param name="arg1">The first value.</param>
153 /// <param name="arg2">The float value to scale the vector.</param>
154 /// <returns>The vector containing the result of the scaling.</returns>
155 /// <since_tizen> 3 </since_tizen>
156 public static Vector3 operator *(Vector3 arg1, float arg2)
158 return arg1.Multiply(arg2);
162 /// The division operator.
164 /// <param name="arg1">The first value.</param>
165 /// <param name="arg2">The second value.</param>
166 /// <returns>The vector containing the result of the division.</returns>
167 /// <since_tizen> 3 </since_tizen>
168 public static Vector3 operator /(Vector3 arg1, Vector3 arg2)
170 return arg1.Divide(arg2);
174 /// The division operator.
176 /// <param name="arg1">The first value.</param>
177 /// <param name="arg2">The float value to scale the vector by.</param>
178 /// <returns>The vector containing the result of the scaling.</returns>
179 /// <since_tizen> 3 </since_tizen>
180 public static Vector3 operator /(Vector3 arg1, float arg2)
182 return arg1.Divide(arg2);
186 /// An array subscript operator overload.
188 /// <param name="index">The subscript index.</param>
189 /// <returns>The float at the given index.</returns>
190 /// <since_tizen> 3 </since_tizen>
191 public float this[uint index]
195 return ValueOfIndex(index);
199 internal static Vector3 GetVector3FromPtr(global::System.IntPtr cPtr)
201 Vector3 ret = new Vector3(cPtr, false);
202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209 /// <since_tizen> 3 </since_tizen>
210 public Vector3() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
212 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
216 /// The default constructor initializes the vector to 0.
218 /// <param name="x">The x (or width) component.</param>
219 /// <param name="y">The y (or height) component.</param>
220 /// <param name="z">The z (or depth) component.</param>
221 /// <since_tizen> 3 </since_tizen>
222 public Vector3(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
224 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
228 /// Conversion constructor from an array of three floats.
230 /// <param name="array">An array of xyz.</param>
231 /// <since_tizen> 3 </since_tizen>
232 public Vector3(float[] array) : this(NDalicPINVOKE.new_Vector3__SWIG_2(array), true)
234 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
240 /// <param name="vec2">Vector2 to create this vector from.</param>
241 /// <since_tizen> 3 </since_tizen>
242 public Vector3(Vector2 vec2) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Vector2.getCPtr(vec2)), true)
244 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
250 /// <param name="vec4">Vector4 to create this vector from.</param>
251 /// <since_tizen> 3 </since_tizen>
252 public Vector3(Vector4 vec4) : this(NDalicPINVOKE.new_Vector3__SWIG_4(Vector4.getCPtr(vec4)), true)
254 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
258 /// (1.0f,1.0f,1.0f).
260 /// <since_tizen> 3 </since_tizen>
261 public static Vector3 One
265 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
266 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
267 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
273 /// The vector representing the x-axis.
275 /// <since_tizen> 3 </since_tizen>
276 public static Vector3 XAxis
280 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
281 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
288 /// The vector representing the y-axis.
290 /// <since_tizen> 3 </since_tizen>
291 public static Vector3 YAxis
295 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
296 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
297 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
303 /// The vector representing the z-axis.
305 /// <since_tizen> 3 </since_tizen>
306 public static Vector3 ZAxis
310 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
311 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
312 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
318 /// The vector representing the negative x-axis.
320 /// <since_tizen> 3 </since_tizen>
321 public static Vector3 NegativeXAxis
325 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
326 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
327 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
333 /// Th vector representing the negative y-axis.
335 /// <since_tizen> 3 </since_tizen>
336 public static Vector3 NegativeYAxis
340 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
341 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
342 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
348 /// The vector representing the negative z-axis.
350 /// <since_tizen> 3 </since_tizen>
351 public static Vector3 NegativeZAxis
355 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
356 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
357 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363 /// (0.0f, 0.0f, 0.0f).
365 /// <since_tizen> 3 </since_tizen>
366 public static Vector3 Zero
370 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
371 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
372 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
377 private Vector3 Add(Vector3 rhs)
379 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Add(swigCPtr, Vector3.getCPtr(rhs)), true);
380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
384 private Vector3 AddAssign(Vector3 rhs)
386 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_AddAssign(swigCPtr, Vector3.getCPtr(rhs)), false);
387 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
391 private Vector3 Subtract(Vector3 rhs)
393 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
398 private Vector3 SubtractAssign(Vector3 rhs)
400 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_SubtractAssign(swigCPtr, Vector3.getCPtr(rhs)), false);
401 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
405 private Vector3 Multiply(Vector3 rhs)
407 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
408 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
412 private Vector3 Multiply(float rhs)
414 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
415 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419 private Vector3 MultiplyAssign(Vector3 rhs)
421 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), false);
422 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
426 private Vector3 MultiplyAssign(float rhs)
428 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_1(swigCPtr, rhs), false);
429 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
433 private Vector3 MultiplyAssign(Rotation rhs)
435 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_2(swigCPtr, Rotation.getCPtr(rhs)), false);
436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
440 private Vector3 Divide(Vector3 rhs)
442 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
443 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
447 private Vector3 Divide(float rhs)
449 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
450 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
454 private Vector3 DivideAssign(Vector3 rhs)
456 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_DivideAssign__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), false);
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
461 private Vector3 DivideAssign(float rhs)
463 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_DivideAssign__SWIG_1(swigCPtr, rhs), false);
464 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
468 private Vector3 Subtract()
470 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
471 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
475 private bool EqualTo(Vector3 rhs)
477 bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Vector3.getCPtr(rhs));
478 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
482 private bool NotEqualTo(Vector3 rhs)
484 bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Vector3.getCPtr(rhs));
485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489 private float ValueOfIndex(uint index)
491 float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
492 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
496 internal float Dot(Vector3 other)
498 float ret = NDalicPINVOKE.Vector3_Dot(swigCPtr, Vector3.getCPtr(other));
499 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
503 internal Vector3 Cross(Vector3 other)
505 Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Cross(swigCPtr, Vector3.getCPtr(other)), true);
506 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
511 /// Returns the length of the vector.
513 /// <returns>The length of the vector.</returns>
514 /// <since_tizen> 3 </since_tizen>
515 public float Length()
517 float ret = NDalicPINVOKE.Vector3_Length(swigCPtr);
518 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
523 /// Returns the length of the vector squared.<br>
524 /// This is more efficient than Length() for threshold
525 /// testing as it avoids the use of a square root.<br>
527 /// <returns>The length of the vector squared.</returns>
528 /// <since_tizen> 3 </since_tizen>
529 public float LengthSquared()
531 float ret = NDalicPINVOKE.Vector3_LengthSquared(swigCPtr);
532 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
537 /// Sets the vector to be unit length, whilst maintaining its direction.
539 /// <since_tizen> 3 </since_tizen>
540 public void Normalize()
542 NDalicPINVOKE.Vector3_Normalize(swigCPtr);
543 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
547 /// Clamps the vector between minimum and maximum vectors.
549 /// <param name="min">The minimum vector.</param>
550 /// <param name="max">The maximum vector.</param>
551 /// <since_tizen> 3 </since_tizen>
552 public void Clamp(Vector3 min, Vector3 max)
554 NDalicPINVOKE.Vector3_Clamp(swigCPtr, Vector3.getCPtr(min), Vector3.getCPtr(max));
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558 internal SWIGTYPE_p_float AsFloat()
560 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_AsFloat__SWIG_0(swigCPtr);
561 SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
562 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
567 /// Returns the x and y components (or width and height, or r and g) as a Vector2.
569 /// <returns>The partial vector contents as Vector2 (x,y).</returns>
570 /// <since_tizen> 3 </since_tizen>
571 public Vector2 GetVectorXY()
573 Vector2 ret = new Vector2(NDalicPINVOKE.Vector3_GetVectorXY__SWIG_0(swigCPtr), false);
574 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
579 /// Returns the y and z components (or height and depth, or g and b) as a Vector2.
581 /// <returns>The partial vector contents as Vector2 (y,z).</returns>
582 /// <since_tizen> 3 </since_tizen>
583 public Vector2 GetVectorYZ()
585 Vector2 ret = new Vector2(NDalicPINVOKE.Vector3_GetVectorYZ__SWIG_0(swigCPtr), false);
586 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
593 /// <since_tizen> 3 </since_tizen>
598 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
599 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
603 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
604 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
610 /// The width component.
612 /// <since_tizen> 3 </since_tizen>
617 NDalicPINVOKE.Vector3_Width_set(swigCPtr, value);
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
622 float ret = NDalicPINVOKE.Vector3_Width_get(swigCPtr);
623 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
629 /// The red component.
631 /// <since_tizen> 3 </since_tizen>
636 NDalicPINVOKE.Vector3_r_set(swigCPtr, value);
637 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
641 float ret = NDalicPINVOKE.Vector3_r_get(swigCPtr);
642 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
650 /// <since_tizen> 3 </since_tizen>
655 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
656 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
660 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
661 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
667 /// The height component.
669 /// <since_tizen> 3 </since_tizen>
674 NDalicPINVOKE.Vector3_Height_set(swigCPtr, value);
675 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
679 float ret = NDalicPINVOKE.Vector3_Height_get(swigCPtr);
680 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
686 /// The green component.
688 /// <since_tizen> 3 </since_tizen>
693 NDalicPINVOKE.Vector3_g_set(swigCPtr, value);
694 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
698 float ret = NDalicPINVOKE.Vector3_g_get(swigCPtr);
699 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
707 /// <since_tizen> 3 </since_tizen>
712 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
713 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
717 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
718 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
724 /// The depth component.
726 /// <since_tizen> 3 </since_tizen>
731 NDalicPINVOKE.Vector3_Depth_set(swigCPtr, value);
732 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
736 float ret = NDalicPINVOKE.Vector3_Depth_get(swigCPtr);
737 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
743 /// The blue component.
745 /// <since_tizen> 3 </since_tizen>
750 NDalicPINVOKE.Vector3_b_set(swigCPtr, value);
751 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
755 float ret = NDalicPINVOKE.Vector3_b_get(swigCPtr);
756 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();