2 * Copyright(c) 2019 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.
17 using System.ComponentModel;
18 using Tizen.NUI.Binding;
24 /// A four-dimensional vector.
26 /// <since_tizen> 3 </since_tizen>
27 [Binding.TypeConverter(typeof(Vector4TypeConverter))]
28 public class Vector4 : Disposable
32 /// The default constructor initializes the vector to 0.
34 /// <since_tizen> 3 </since_tizen>
35 public Vector4() : this(Interop.Vector4.new_Vector4__SWIG_0(), true)
37 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
41 /// The conversion constructor from four floats.
43 /// <param name="x">The x (or r/s) component.</param>
44 /// <param name="y">The y (or g/t) component.</param>
45 /// <param name="z">The z (or b/p) component.</param>
46 /// <param name="w">The w (or a/q) component.</param>
47 /// <since_tizen> 3 </since_tizen>
48 public Vector4(float x, float y, float z, float w) : this(Interop.Vector4.new_Vector4__SWIG_1(x, y, z, w), true)
50 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
54 /// The conversion constructor from an array of four floats.
56 /// <param name="array">The array of either xyzw/rgba/stpq.</param>
57 /// <since_tizen> 3 </since_tizen>
58 public Vector4(float[] array) : this(Interop.Vector4.new_Vector4__SWIG_2(array), true)
60 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
64 /// The conversion constructor from Vector2.
66 /// <param name="vec2">Vector2 to copy from, z and w are initialized to 0.</param>
67 /// <since_tizen> 3 </since_tizen>
68 public Vector4(Vector2 vec2) : this(Interop.Vector4.new_Vector4__SWIG_3(Vector2.getCPtr(vec2)), true)
70 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
74 /// The conversion constructor from Vector3.
76 /// <param name="vec3">Vector3 to copy from, w is initialized to 0.</param>
77 /// <since_tizen> 3 </since_tizen>
78 public Vector4(Vector3 vec3) : this(Interop.Vector4.new_Vector4__SWIG_4(Vector3.getCPtr(vec3)), true)
80 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
83 internal Vector4(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
87 internal Vector4(Vector4ChangedCallback cb, float x, float y, float z, float w) : this(Interop.Vector4.new_Vector4__SWIG_1(x, y, z, w), true)
90 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92 internal delegate void Vector4ChangedCallback(float x, float y, float z, float w);
93 private Vector4ChangedCallback callback = null;
96 /// (1.0f,1.0f,1.0f,1.0f).
98 /// <since_tizen> 3 </since_tizen>
99 public static Vector4 One
103 global::System.IntPtr cPtr = Interop.Vector4.Vector4_ONE_get();
104 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
105 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111 /// (1.0f,0.0f,0.0f,0.0f).
113 /// <since_tizen> 3 </since_tizen>
114 public static Vector4 XAxis
118 global::System.IntPtr cPtr = Interop.Vector4.Vector4_XAXIS_get();
119 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
120 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126 /// (0.0f,1.0f,0.0f,0.0f).
128 /// <since_tizen> 3 </since_tizen>
129 public static Vector4 YAxis
133 global::System.IntPtr cPtr = Interop.Vector4.Vector4_YAXIS_get();
134 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
135 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
141 /// (0.0f,0.0f,1.0f,0.0f).
143 /// <since_tizen> 3 </since_tizen>
144 public static Vector4 ZAxis
148 global::System.IntPtr cPtr = Interop.Vector4.Vector4_ZAXIS_get();
149 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
150 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156 /// (0.0f, 0.0f, 0.0f, 0.0f).
158 /// <since_tizen> 3 </since_tizen>
159 public static Vector4 Zero
163 global::System.IntPtr cPtr = Interop.Vector4.Vector4_ZERO_get();
164 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
165 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
173 /// <since_tizen> 3 </since_tizen>
178 Interop.Vector4.Vector4_X_set(swigCPtr, value);
179 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
181 callback?.Invoke(X, Y, Z, W);
185 float ret = Interop.Vector4.Vector4_X_get(swigCPtr);
186 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
192 /// The red component.
194 /// <since_tizen> 3 </since_tizen>
199 Interop.Vector4.Vector4_r_set(swigCPtr, value);
200 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202 callback?.Invoke(X, Y, Z, W);
206 float ret = Interop.Vector4.Vector4_r_get(swigCPtr);
207 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215 /// <since_tizen> 3 </since_tizen>
220 Interop.Vector4.Vector4_s_set(swigCPtr, value);
221 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
223 callback?.Invoke(X, Y, Z, W);
227 float ret = Interop.Vector4.Vector4_s_get(swigCPtr);
228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 /// <since_tizen> 3 </since_tizen>
241 Interop.Vector4.Vector4_Y_set(swigCPtr, value);
242 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
244 callback?.Invoke(X, Y, Z, W);
248 float ret = Interop.Vector4.Vector4_Y_get(swigCPtr);
249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
255 /// The green component.
257 /// <since_tizen> 3 </since_tizen>
262 Interop.Vector4.Vector4_g_set(swigCPtr, value);
263 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
265 callback?.Invoke(X, Y, Z, W);
269 float ret = Interop.Vector4.Vector4_g_get(swigCPtr);
270 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
278 /// <since_tizen> 3 </since_tizen>
283 Interop.Vector4.Vector4_t_set(swigCPtr, value);
284 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
286 callback?.Invoke(X, Y, Z, W);
290 float ret = Interop.Vector4.Vector4_t_get(swigCPtr);
291 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
299 /// <since_tizen> 3 </since_tizen>
304 Interop.Vector4.Vector4_Z_set(swigCPtr, value);
305 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
307 callback?.Invoke(X, Y, Z, W);
311 float ret = Interop.Vector4.Vector4_Z_get(swigCPtr);
312 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
318 /// The blue component.
320 /// <since_tizen> 3 </since_tizen>
325 Interop.Vector4.Vector4_b_set(swigCPtr, value);
326 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
328 callback?.Invoke(X, Y, Z, W);
332 float ret = Interop.Vector4.Vector4_b_get(swigCPtr);
333 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
341 /// <since_tizen> 3 </since_tizen>
346 Interop.Vector4.Vector4_p_set(swigCPtr, value);
347 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
349 callback?.Invoke(X, Y, Z, W);
353 float ret = Interop.Vector4.Vector4_p_get(swigCPtr);
354 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
362 /// <since_tizen> 3 </since_tizen>
367 Interop.Vector4.Vector4_W_set(swigCPtr, value);
368 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370 callback?.Invoke(X, Y, Z, W);
374 float ret = Interop.Vector4.Vector4_W_get(swigCPtr);
375 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
381 /// The alpha component.
383 /// <since_tizen> 3 </since_tizen>
388 Interop.Vector4.Vector4_a_set(swigCPtr, value);
389 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
391 callback?.Invoke(X, Y, Z, W);
395 float ret = Interop.Vector4.Vector4_a_get(swigCPtr);
396 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
404 /// <since_tizen> 3 </since_tizen>
409 Interop.Vector4.Vector4_q_set(swigCPtr, value);
410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
412 callback?.Invoke(X, Y, Z, W);
416 float ret = Interop.Vector4.Vector4_q_get(swigCPtr);
417 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
423 /// The array subscript operator overload.
425 /// <param name="index">The subscript index.</param>
426 /// <returns>The float at the given index.</returns>
427 /// <since_tizen> 3 </since_tizen>
428 public float this[uint index]
432 return ValueOfIndex(index);
438 /// The addition operator.
440 /// <param name="arg1">The first value.</param>
441 /// <param name="arg2">The second value.</param>
442 /// <returns>The vector containing the result of the addition.</returns>
443 /// <since_tizen> 3 </since_tizen>
444 public static Vector4 operator +(Vector4 arg1, Vector4 arg2)
446 return arg1.Add(arg2);
450 /// The subtraction operator.
452 /// <param name="arg1">The first value.</param>
453 /// <param name="arg2">The second value.</param>
454 /// <returns>The vector containing the result of the subtraction.</returns>
455 /// <since_tizen> 3 </since_tizen>
456 public static Vector4 operator -(Vector4 arg1, Vector4 arg2)
458 return arg1.Subtract(arg2);
462 /// The unary negation operator.
464 /// <param name="arg1">The target value.</param>
465 /// <returns>The vector containing the negation.</returns>
466 /// <since_tizen> 3 </since_tizen>
467 public static Vector4 operator -(Vector4 arg1)
469 return arg1.Subtract();
473 /// The multiplication operator.
475 /// <param name="arg1">The first value.</param>
476 /// <param name="arg2">The second value.</param>
477 /// <returns>The vector containing the result of the multiplication.</returns>
478 /// <since_tizen> 3 </since_tizen>
479 public static Vector4 operator *(Vector4 arg1, Vector4 arg2)
481 return arg1.Multiply(arg2);
485 /// The multiplication operator.
487 /// <param name="arg1">The first value.</param>
488 /// <param name="arg2">The float value to scale the vector.</param>
489 /// <returns>The vector containing the result of scaling.</returns>
490 /// <since_tizen> 3 </since_tizen>
491 public static Vector4 operator *(Vector4 arg1, float arg2)
493 return arg1.Multiply(arg2);
497 /// The division operator.
499 /// <param name="arg1">The first value.</param>
500 /// <param name="arg2">The second value.</param>
501 /// <returns>The vector containing the result of the division.</returns>
502 /// <since_tizen> 3 </since_tizen>
503 public static Vector4 operator /(Vector4 arg1, Vector4 arg2)
505 return arg1.Divide(arg2);
509 /// The division operator.
511 /// <param name="arg1">The first value.</param>
512 /// <param name="arg2">The float value to scale the vector by.</param>
513 /// <returns>The vector containing the result of scaling.</returns>
514 /// <since_tizen> 3 </since_tizen>
515 public static Vector4 operator /(Vector4 arg1, float arg2)
517 return arg1.Divide(arg2);
521 /// Determines whether the specified object is equal to the current object.
523 /// <param name="obj">The object to compare with the current object.</param>
524 /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns>
525 public override bool Equals(System.Object obj)
527 Vector4 vector4 = obj as Vector4;
529 if (X == vector4?.X && Y == vector4?.Y && Z == vector4?.Z && W == vector4?.W)
537 /// Gets the the hash code of this Vector4.
539 /// <returns>The Hash Code.</returns>
540 /// <since_tizen> 6 </since_tizen>
541 public override int GetHashCode()
543 return swigCPtr.Handle.GetHashCode();
547 /// Returns the length of the vector.
549 /// <returns>The length.</returns>
550 /// <since_tizen> 3 </since_tizen>
551 public float Length()
553 float ret = Interop.Vector4.Vector4_Length(swigCPtr);
554 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
559 /// Returns the length of the vector squared.<br />
560 /// This is faster than using Length() when performing
561 /// threshold checks as it avoids use of the square root.<br />
563 /// <returns>The length of the vector squared.</returns>
564 /// <since_tizen> 3 </since_tizen>
565 public float LengthSquared()
567 float ret = Interop.Vector4.Vector4_LengthSquared(swigCPtr);
568 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573 /// Normalizes the vector.<br />
574 /// Sets the vector to unit length whilst maintaining its direction.<br />
576 /// <since_tizen> 3 </since_tizen>
577 public void Normalize()
579 Interop.Vector4.Vector4_Normalize(swigCPtr);
580 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
584 /// Clamps the vector between minimum and maximum vectors.
586 /// <param name="min">The minimum vector.</param>
587 /// <param name="max">The maximum vector.</param>
588 /// <since_tizen> 3 </since_tizen>
589 public void Clamp(Vector4 min, Vector4 max)
591 Interop.Vector4.Vector4_Clamp(swigCPtr, Vector4.getCPtr(min), Vector4.getCPtr(max));
592 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
595 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Vector4 obj)
597 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
600 internal static Vector4 GetVector4FromPtr(global::System.IntPtr cPtr)
602 Vector4 ret = new Vector4(cPtr, false);
603 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
607 internal SWIGTYPE_p_float AsFloat()
609 global::System.IntPtr cPtr = Interop.Vector4.Vector4_AsFloat__SWIG_0(swigCPtr);
610 SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
611 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
615 internal float Dot(Vector3 other)
617 float ret = Interop.Vector4.Vector4_Dot__SWIG_0(swigCPtr, Vector3.getCPtr(other));
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
622 internal float Dot(Vector4 other)
624 float ret = Interop.Vector4.Vector4_Dot__SWIG_1(swigCPtr, Vector4.getCPtr(other));
625 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
629 internal float Dot4(Vector4 other)
631 float ret = Interop.Vector4.Vector4_Dot4(swigCPtr, Vector4.getCPtr(other));
632 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
636 internal Vector4 Cross(Vector4 other)
638 Vector4 ret = new Vector4(Interop.Vector4.Vector4_Cross(swigCPtr, Vector4.getCPtr(other)), true);
639 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
643 /// This will not be public opened.
644 [EditorBrowsable(EditorBrowsableState.Never)]
645 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
647 Interop.Vector4.delete_Vector4(swigCPtr);
650 private Vector4 Add(Vector4 rhs)
652 Vector4 ret = new Vector4(Interop.Vector4.Vector4_Add(swigCPtr, Vector4.getCPtr(rhs)), true);
653 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
657 private Vector4 AddAssign(Vector4 rhs)
659 Vector4 ret = new Vector4(Interop.Vector4.Vector4_AddAssign(swigCPtr, Vector4.getCPtr(rhs)), false);
660 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
664 private Vector4 Subtract(Vector4 rhs)
666 Vector4 ret = new Vector4(Interop.Vector4.Vector4_Subtract__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
667 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
671 private Vector4 SubtractAssign(Vector4 rhs)
673 Vector4 ret = new Vector4(Interop.Vector4.Vector4_SubtractAssign(swigCPtr, Vector4.getCPtr(rhs)), false);
674 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
678 private Vector4 Multiply(Vector4 rhs)
680 Vector4 ret = new Vector4(Interop.Vector4.Vector4_Multiply__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
681 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
685 private Vector4 Multiply(float rhs)
687 Vector4 ret = new Vector4(Interop.Vector4.Vector4_Multiply__SWIG_1(swigCPtr, rhs), true);
688 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
692 private Vector4 MultiplyAssign(Vector4 rhs)
694 Vector4 ret = new Vector4(Interop.Vector4.Vector4_MultiplyAssign__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), false);
695 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
699 private Vector4 MultiplyAssign(float rhs)
701 Vector4 ret = new Vector4(Interop.Vector4.Vector4_MultiplyAssign__SWIG_1(swigCPtr, rhs), false);
702 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
706 private Vector4 Divide(Vector4 rhs)
708 Vector4 ret = new Vector4(Interop.Vector4.Vector4_Divide__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
709 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
713 private Vector4 Divide(float rhs)
715 Vector4 ret = new Vector4(Interop.Vector4.Vector4_Divide__SWIG_1(swigCPtr, rhs), true);
716 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
720 private Vector4 DivideAssign(Vector4 rhs)
722 Vector4 ret = new Vector4(Interop.Vector4.Vector4_DivideAssign__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), false);
723 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
727 private Vector4 DivideAssign(float rhs)
729 Vector4 ret = new Vector4(Interop.Vector4.Vector4_DivideAssign__SWIG_1(swigCPtr, rhs), false);
730 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
734 private Vector4 Subtract()
736 Vector4 ret = new Vector4(Interop.Vector4.Vector4_Subtract__SWIG_1(swigCPtr), true);
737 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
741 private bool EqualTo(Vector4 rhs)
743 bool ret = Interop.Vector4.Vector4_EqualTo(swigCPtr, Vector4.getCPtr(rhs));
744 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
748 private bool NotEqualTo(Vector4 rhs)
750 bool ret = Interop.Vector4.Vector4_NotEqualTo(swigCPtr, Vector4.getCPtr(rhs));
751 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
755 private float ValueOfIndex(uint index)
757 float ret = Interop.Vector4.Vector4_ValueOfIndex__SWIG_0(swigCPtr, index);
758 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();