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 /// A four-dimensional vector.
24 public class Vector4 : global::System.IDisposable
26 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
30 protected bool swigCMemOwn;
32 internal Vector4(global::System.IntPtr cPtr, bool cMemoryOwn)
34 swigCMemOwn = cMemoryOwn;
35 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
38 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Vector4 obj)
40 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
43 //A Flag to check who called Dispose(). (By User or DisposeQueue)
44 private bool isDisposeQueued = false;
47 /// A Flat to check if it is already disposed.
49 protected bool disposed = false;
54 /// <since_tizen> 3 </since_tizen>
59 isDisposeQueued = true;
60 DisposeQueue.Instance.Add(this);
67 /// <since_tizen> 3 </since_tizen>
70 //Throw excpetion if Dispose() is called in separate thread.
71 if (!Window.IsInstalled())
73 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
78 Dispose(DisposeTypes.Implicit);
82 Dispose(DisposeTypes.Explicit);
83 System.GC.SuppressFinalize(this);
90 /// <param name="type">The dispose type</param>
91 /// <since_tizen> 3 </since_tizen>
92 protected virtual void Dispose(DisposeTypes type)
99 if(type == DisposeTypes.Explicit)
102 //Release your own managed resources here.
103 //You should release all of your own disposable objects here.
106 //Release your own unmanaged resources here.
107 //You should not access any managed member here except static instance.
108 //because the execution order of Finalizes is non-deterministic.
110 if (swigCPtr.Handle != global::System.IntPtr.Zero)
115 NDalicPINVOKE.delete_Vector4(swigCPtr);
117 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
123 /// The addition operator.
125 /// <param name="arg1">The first value.</param>
126 /// <param name="arg2">The second value.</param>
127 /// <returns>The vector containing the result of the addition.</returns>
128 /// <since_tizen> 3 </since_tizen>
129 public static Vector4 operator +(Vector4 arg1, Vector4 arg2)
131 return arg1.Add(arg2);
135 /// The subtraction operator.
137 /// <param name="arg1">The first value.</param>
138 /// <param name="arg2">The second value.</param>
139 /// <returns>The vector containing the result of the subtraction.</returns>
140 /// <since_tizen> 3 </since_tizen>
141 public static Vector4 operator -(Vector4 arg1, Vector4 arg2)
143 return arg1.Subtract(arg2);
147 /// The unary negation operator.
149 /// <param name="arg1">The target value.</param>
150 /// <returns>The vector containing the negation.</returns>
151 /// <since_tizen> 3 </since_tizen>
152 public static Vector4 operator -(Vector4 arg1)
154 return arg1.Subtract();
158 /// The multiplication operator.
160 /// <param name="arg1">The first value.</param>
161 /// <param name="arg2">The second value.</param>
162 /// <returns>The vector containing the result of the multiplication.</returns>
163 /// <since_tizen> 3 </since_tizen>
164 public static Vector4 operator *(Vector4 arg1, Vector4 arg2)
166 return arg1.Multiply(arg2);
170 /// The multiplication operator.
172 /// <param name="arg1">The first value.</param>
173 /// <param name="arg2">The float value to scale the vector.</param>
174 /// <returns>The vector containing the result of scaling.</returns>
175 /// <since_tizen> 3 </since_tizen>
176 public static Vector4 operator *(Vector4 arg1, float arg2)
178 return arg1.Multiply(arg2);
182 /// The division operator.
184 /// <param name="arg1">The first value.</param>
185 /// <param name="arg2">The second value.</param>
186 /// <returns>The vector containing the result of the division.</returns>
187 /// <since_tizen> 3 </since_tizen>
188 public static Vector4 operator /(Vector4 arg1, Vector4 arg2)
190 return arg1.Divide(arg2);
194 /// The division operator.
196 /// <param name="arg1">The first value.</param>
197 /// <param name="arg2">The float value to scale the vector by.</param>
198 /// <returns>The vector containing the result of scaling.</returns>
199 /// <since_tizen> 3 </since_tizen>
200 public static Vector4 operator /(Vector4 arg1, float arg2)
202 return arg1.Divide(arg2);
206 /// The array subscript operator overload.
208 /// <param name="index">The subscript index.</param>
209 /// <returns>The float at the given index.</returns>
210 /// <since_tizen> 3 </since_tizen>
211 public float this[uint index]
215 return ValueOfIndex(index);
219 internal static Vector4 GetVector4FromPtr(global::System.IntPtr cPtr)
221 Vector4 ret = new Vector4(cPtr, false);
222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227 /// The default constructor initializes the vector to 0.
229 /// <since_tizen> 3 </since_tizen>
230 public Vector4() : this(NDalicPINVOKE.new_Vector4__SWIG_0(), true)
232 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 /// The conversion constructor from four floats.
238 /// <param name="x">The x (or r/s) component.</param>
239 /// <param name="y">The y (or g/t) component.</param>
240 /// <param name="z">The z (or b/p) component.</param>
241 /// <param name="w">The w (or a/q) component.</param>
242 /// <since_tizen> 3 </since_tizen>
243 public Vector4(float x, float y, float z, float w) : this(NDalicPINVOKE.new_Vector4__SWIG_1(x, y, z, w), true)
245 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
249 /// The conversion constructor from an array of four floats.
251 /// <param name="array">The array of either xyzw/rgba/stpq.</param>
252 /// <since_tizen> 3 </since_tizen>
253 public Vector4(float[] array) : this(NDalicPINVOKE.new_Vector4__SWIG_2(array), true)
255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
259 /// The conversion constructor from Vector2.
261 /// <param name="vec2">Vector2 to copy from, z and w are initialized to 0.</param>
262 /// <since_tizen> 3 </since_tizen>
263 public Vector4(Vector2 vec2) : this(NDalicPINVOKE.new_Vector4__SWIG_3(Vector2.getCPtr(vec2)), true)
265 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
269 /// The conversion constructor from Vector3.
271 /// <param name="vec3">Vector3 to copy from, w is initialized to 0.</param>
272 /// <since_tizen> 3 </since_tizen>
273 public Vector4(Vector3 vec3) : this(NDalicPINVOKE.new_Vector4__SWIG_4(Vector3.getCPtr(vec3)), true)
275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
279 /// (1.0f,1.0f,1.0f,1.0f).
281 /// <since_tizen> 3 </since_tizen>
282 public static Vector4 One
286 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_ONE_get();
287 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
288 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
294 /// (1.0f,0.0f,0.0f,0.0f).
296 /// <since_tizen> 3 </since_tizen>
297 public static Vector4 XAxis
301 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_XAXIS_get();
302 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
303 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
309 /// (0.0f,1.0f,0.0f,0.0f).
311 /// <since_tizen> 3 </since_tizen>
312 public static Vector4 YAxis
316 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_YAXIS_get();
317 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
318 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
324 /// (0.0f,0.0f,1.0f,0.0f).
326 /// <since_tizen> 3 </since_tizen>
327 public static Vector4 ZAxis
331 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_ZAXIS_get();
332 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
333 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
339 /// (0.0f, 0.0f, 0.0f, 0.0f).
341 /// <since_tizen> 3 </since_tizen>
342 public static Vector4 Zero
346 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_ZERO_get();
347 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
348 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353 private Vector4 Add(Vector4 rhs)
355 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Add(swigCPtr, Vector4.getCPtr(rhs)), true);
356 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 private Vector4 AddAssign(Vector4 rhs)
362 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_AddAssign(swigCPtr, Vector4.getCPtr(rhs)), false);
363 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
367 private Vector4 Subtract(Vector4 rhs)
369 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Subtract__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
370 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
374 private Vector4 SubtractAssign(Vector4 rhs)
376 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_SubtractAssign(swigCPtr, Vector4.getCPtr(rhs)), false);
377 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
381 private Vector4 Multiply(Vector4 rhs)
383 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Multiply__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
384 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388 private Vector4 Multiply(float rhs)
390 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Multiply__SWIG_1(swigCPtr, rhs), true);
391 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
395 private Vector4 MultiplyAssign(Vector4 rhs)
397 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_MultiplyAssign__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), false);
398 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
402 private Vector4 MultiplyAssign(float rhs)
404 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_MultiplyAssign__SWIG_1(swigCPtr, rhs), false);
405 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409 private Vector4 Divide(Vector4 rhs)
411 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Divide__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
412 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
416 private Vector4 Divide(float rhs)
418 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Divide__SWIG_1(swigCPtr, rhs), true);
419 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
423 private Vector4 DivideAssign(Vector4 rhs)
425 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_DivideAssign__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), false);
426 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
430 private Vector4 DivideAssign(float rhs)
432 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_DivideAssign__SWIG_1(swigCPtr, rhs), false);
433 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
437 private Vector4 Subtract()
439 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Subtract__SWIG_1(swigCPtr), true);
440 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444 private bool EqualTo(Vector4 rhs)
446 bool ret = NDalicPINVOKE.Vector4_EqualTo(swigCPtr, Vector4.getCPtr(rhs));
447 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
451 private bool NotEqualTo(Vector4 rhs)
453 bool ret = NDalicPINVOKE.Vector4_NotEqualTo(swigCPtr, Vector4.getCPtr(rhs));
454 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
458 private float ValueOfIndex(uint index)
460 float ret = NDalicPINVOKE.Vector4_ValueOfIndex__SWIG_0(swigCPtr, index);
461 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
465 internal float Dot(Vector3 other)
467 float ret = NDalicPINVOKE.Vector4_Dot__SWIG_0(swigCPtr, Vector3.getCPtr(other));
468 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
472 internal float Dot(Vector4 other)
474 float ret = NDalicPINVOKE.Vector4_Dot__SWIG_1(swigCPtr, Vector4.getCPtr(other));
475 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
479 internal float Dot4(Vector4 other)
481 float ret = NDalicPINVOKE.Vector4_Dot4(swigCPtr, Vector4.getCPtr(other));
482 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
486 internal Vector4 Cross(Vector4 other)
488 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Cross(swigCPtr, Vector4.getCPtr(other)), true);
489 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494 /// Returns the length of the vector.
496 /// <returns>The length.</returns>
497 /// <since_tizen> 3 </since_tizen>
498 public float Length()
500 float ret = NDalicPINVOKE.Vector4_Length(swigCPtr);
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
506 /// Returns the length of the vector squared.<br />
507 /// This is faster than using Length() when performing
508 /// threshold checks as it avoids use of the square root.<br />
510 /// <returns>The length of the vector squared.</returns>
511 /// <since_tizen> 3 </since_tizen>
512 public float LengthSquared()
514 float ret = NDalicPINVOKE.Vector4_LengthSquared(swigCPtr);
515 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
520 /// Normalizes the vector.<br />
521 /// Sets the vector to unit length whilst maintaining its direction.<br />
523 /// <since_tizen> 3 </since_tizen>
524 public void Normalize()
526 NDalicPINVOKE.Vector4_Normalize(swigCPtr);
527 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
531 /// Clamps the vector between minimum and maximum vectors.
533 /// <param name="min">The minimum vector.</param>
534 /// <param name="max">The maximum vector.</param>
535 /// <since_tizen> 3 </since_tizen>
536 public void Clamp(Vector4 min, Vector4 max)
538 NDalicPINVOKE.Vector4_Clamp(swigCPtr, Vector4.getCPtr(min), Vector4.getCPtr(max));
539 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
542 internal SWIGTYPE_p_float AsFloat()
544 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_AsFloat__SWIG_0(swigCPtr);
545 SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
546 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
553 /// <since_tizen> 3 </since_tizen>
558 NDalicPINVOKE.Vector4_X_set(swigCPtr, value);
559 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563 float ret = NDalicPINVOKE.Vector4_X_get(swigCPtr);
564 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
570 /// The red component.
572 /// <since_tizen> 3 </since_tizen>
577 NDalicPINVOKE.Vector4_r_set(swigCPtr, value);
578 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
582 float ret = NDalicPINVOKE.Vector4_r_get(swigCPtr);
583 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
591 /// <since_tizen> 3 </since_tizen>
596 NDalicPINVOKE.Vector4_s_set(swigCPtr, value);
597 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
601 float ret = NDalicPINVOKE.Vector4_s_get(swigCPtr);
602 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
610 /// <since_tizen> 3 </since_tizen>
615 NDalicPINVOKE.Vector4_Y_set(swigCPtr, value);
616 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
620 float ret = NDalicPINVOKE.Vector4_Y_get(swigCPtr);
621 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
627 /// The green component.
629 /// <since_tizen> 3 </since_tizen>
634 NDalicPINVOKE.Vector4_g_set(swigCPtr, value);
635 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
639 float ret = NDalicPINVOKE.Vector4_g_get(swigCPtr);
640 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
648 /// <since_tizen> 3 </since_tizen>
653 NDalicPINVOKE.Vector4_t_set(swigCPtr, value);
654 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
658 float ret = NDalicPINVOKE.Vector4_t_get(swigCPtr);
659 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
667 /// <since_tizen> 3 </since_tizen>
672 NDalicPINVOKE.Vector4_Z_set(swigCPtr, value);
673 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
677 float ret = NDalicPINVOKE.Vector4_Z_get(swigCPtr);
678 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
684 /// The blue component.
686 /// <since_tizen> 3 </since_tizen>
691 NDalicPINVOKE.Vector4_b_set(swigCPtr, value);
692 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
696 float ret = NDalicPINVOKE.Vector4_b_get(swigCPtr);
697 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
705 /// <since_tizen> 3 </since_tizen>
710 NDalicPINVOKE.Vector4_p_set(swigCPtr, value);
711 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
715 float ret = NDalicPINVOKE.Vector4_p_get(swigCPtr);
716 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
724 /// <since_tizen> 3 </since_tizen>
729 NDalicPINVOKE.Vector4_W_set(swigCPtr, value);
730 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
734 float ret = NDalicPINVOKE.Vector4_W_get(swigCPtr);
735 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
741 /// The alpha component.
743 /// <since_tizen> 3 </since_tizen>
748 NDalicPINVOKE.Vector4_a_set(swigCPtr, value);
749 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
753 float ret = NDalicPINVOKE.Vector4_a_get(swigCPtr);
754 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
762 /// <since_tizen> 3 </since_tizen>
767 NDalicPINVOKE.Vector4_q_set(swigCPtr, value);
768 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
772 float ret = NDalicPINVOKE.Vector4_q_get(swigCPtr);
773 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();