1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
\r
2 // PROPRIETARY/CONFIDENTIAL
\r
3 // This software is the confidential and proprietary
\r
4 // information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall
\r
5 // not disclose such Confidential Information and shall use it only in
\r
6 // accordance with the terms of the license agreement you entered into with
\r
7 // SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the
\r
8 // suitability of the software, either express or implied, including but not
\r
9 // limited to the implied warranties of merchantability, fitness for a
\r
10 // particular purpose, or non-infringement. SAMSUNG shall not be liable for any
\r
11 // damages suffered by licensee as a result of using, modifying or distributing
\r
12 // this software or its derivatives.
\r
14 // Copyright (c) 2017 Samsung Electronics Co., Ltd.
16 // Licensed under the Apache License, Version 2.0 (the "License");
17 // you may not use this file except in compliance with the License.
18 // You may obtain a copy of the License at
20 // http://www.apache.org/licenses/LICENSE-2.0
22 // Unless required by applicable law or agreed to in writing, software
23 // distributed under the License is distributed on an "AS IS" BASIS,
24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25 // See the License for the specific language governing permissions and
26 // limitations under the License.
29 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
30 // Some have been manually changed
36 public class Vector4 : global::System.IDisposable
\r
38 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
39 protected bool swigCMemOwn;
\r
41 internal Vector4(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
43 swigCMemOwn = cMemoryOwn;
\r
44 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
47 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Vector4 obj)
\r
49 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
54 DisposeQueue.Instance.Add(this);
\r
57 public virtual void Dispose()
\r
59 if (!Stage.IsInstalled())
\r
61 DisposeQueue.Instance.Add(this);
\r
67 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
71 swigCMemOwn = false;
\r
72 NDalicPINVOKE.delete_Vector4(swigCPtr);
\r
74 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
76 global::System.GC.SuppressFinalize(this);
\r
81 public static Vector4 operator +(Vector4 arg1, Vector4 arg2)
\r
83 return arg1.Add(arg2);
\r
86 public static Vector4 operator -(Vector4 arg1, Vector4 arg2)
\r
88 return arg1.Subtract(arg2);
\r
91 public static Vector4 operator -(Vector4 arg1)
\r
93 return arg1.Subtract();
\r
96 public static Vector4 operator *(Vector4 arg1, Vector4 arg2)
\r
98 return arg1.Multiply(arg2);
\r
101 public static Vector4 operator *(Vector4 arg1, float arg2)
\r
103 return arg1.Multiply(arg2);
\r
106 public static Vector4 operator /(Vector4 arg1, Vector4 arg2)
\r
108 return arg1.Divide(arg2);
\r
111 public static Vector4 operator /(Vector4 arg1, float arg2)
\r
113 return arg1.Divide(arg2);
\r
116 public float this[uint index]
\r
120 return ValueOfIndex(index);
\r
124 internal static Vector4 GetVector4FromPtr(global::System.IntPtr cPtr)
\r
126 Vector4 ret = new Vector4(cPtr, false);
\r
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
132 public Vector4() : this(NDalicPINVOKE.new_Vector4__SWIG_0(), true)
\r
134 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
137 public Vector4(float x, float y, float z, float w) : this(NDalicPINVOKE.new_Vector4__SWIG_1(x, y, z, w), true)
\r
139 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
142 public Vector4(float[] array) : this(NDalicPINVOKE.new_Vector4__SWIG_2(array), true)
\r
144 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
147 public Vector4(Vector2 vec2) : this(NDalicPINVOKE.new_Vector4__SWIG_3(Vector2.getCPtr(vec2)), true)
\r
149 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
152 public Vector4(Vector3 vec3) : this(NDalicPINVOKE.new_Vector4__SWIG_4(Vector3.getCPtr(vec3)), true)
\r
154 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
157 public static Vector4 One
\r
161 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_ONE_get();
\r
162 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
\r
163 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
168 public static Vector4 XAxis
\r
172 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_XAXIS_get();
\r
173 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
\r
174 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
179 public static Vector4 YAxis
\r
183 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_YAXIS_get();
\r
184 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
\r
185 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
190 public static Vector4 ZAxis
\r
194 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_ZAXIS_get();
\r
195 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
\r
196 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
201 public static Vector4 Zero
\r
205 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_ZERO_get();
\r
206 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
\r
207 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
212 internal Vector4 Assign(float[] array)
\r
214 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Assign__SWIG_0(swigCPtr, array), false);
\r
215 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
219 internal Vector4 Assign(Vector2 vec2)
\r
221 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Assign__SWIG_1(swigCPtr, Vector2.getCPtr(vec2)), false);
\r
222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
226 internal Vector4 Assign(Vector3 vec3)
\r
228 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Assign__SWIG_2(swigCPtr, Vector3.getCPtr(vec3)), false);
\r
229 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
233 internal Vector4 Add(Vector4 rhs)
\r
235 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Add(swigCPtr, Vector4.getCPtr(rhs)), true);
\r
236 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
240 internal Vector4 AddAssign(Vector4 rhs)
\r
242 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_AddAssign(swigCPtr, Vector4.getCPtr(rhs)), false);
\r
243 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
247 internal Vector4 Subtract(Vector4 rhs)
\r
249 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Subtract__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
\r
250 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
254 internal Vector4 SubtractAssign(Vector4 rhs)
\r
256 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_SubtractAssign(swigCPtr, Vector4.getCPtr(rhs)), false);
\r
257 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
261 internal Vector4 Multiply(Vector4 rhs)
\r
263 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Multiply__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
\r
264 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
268 internal Vector4 Multiply(float rhs)
\r
270 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Multiply__SWIG_1(swigCPtr, rhs), true);
\r
271 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
275 internal Vector4 MultiplyAssign(Vector4 rhs)
\r
277 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_MultiplyAssign__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), false);
\r
278 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
282 internal Vector4 MultiplyAssign(float rhs)
\r
284 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_MultiplyAssign__SWIG_1(swigCPtr, rhs), false);
\r
285 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
289 internal Vector4 Divide(Vector4 rhs)
\r
291 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Divide__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
\r
292 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
296 internal Vector4 Divide(float rhs)
\r
298 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Divide__SWIG_1(swigCPtr, rhs), true);
\r
299 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
303 internal Vector4 DivideAssign(Vector4 rhs)
\r
305 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_DivideAssign__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), false);
\r
306 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
310 internal Vector4 DivideAssign(float rhs)
\r
312 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_DivideAssign__SWIG_1(swigCPtr, rhs), false);
\r
313 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
317 internal Vector4 Subtract()
\r
319 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Subtract__SWIG_1(swigCPtr), true);
\r
320 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
324 internal bool EqualTo(Vector4 rhs)
\r
326 bool ret = NDalicPINVOKE.Vector4_EqualTo(swigCPtr, Vector4.getCPtr(rhs));
\r
327 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
331 internal bool NotEqualTo(Vector4 rhs)
\r
333 bool ret = NDalicPINVOKE.Vector4_NotEqualTo(swigCPtr, Vector4.getCPtr(rhs));
\r
334 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
338 internal float ValueOfIndex(uint index)
\r
340 float ret = NDalicPINVOKE.Vector4_ValueOfIndex__SWIG_0(swigCPtr, index);
\r
341 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
345 internal float Dot(Vector3 other)
\r
347 float ret = NDalicPINVOKE.Vector4_Dot__SWIG_0(swigCPtr, Vector3.getCPtr(other));
\r
348 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
352 internal float Dot(Vector4 other)
\r
354 float ret = NDalicPINVOKE.Vector4_Dot__SWIG_1(swigCPtr, Vector4.getCPtr(other));
\r
355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
359 internal float Dot4(Vector4 other)
\r
361 float ret = NDalicPINVOKE.Vector4_Dot4(swigCPtr, Vector4.getCPtr(other));
\r
362 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
366 internal Vector4 Cross(Vector4 other)
\r
368 Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Cross(swigCPtr, Vector4.getCPtr(other)), true);
\r
369 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
373 public float Length()
\r
375 float ret = NDalicPINVOKE.Vector4_Length(swigCPtr);
\r
376 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
380 public float LengthSquared()
\r
382 float ret = NDalicPINVOKE.Vector4_LengthSquared(swigCPtr);
\r
383 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
387 public void Normalize()
\r
389 NDalicPINVOKE.Vector4_Normalize(swigCPtr);
\r
390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
393 public void Clamp(Vector4 min, Vector4 max)
\r
395 NDalicPINVOKE.Vector4_Clamp(swigCPtr, Vector4.getCPtr(min), Vector4.getCPtr(max));
\r
396 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
399 internal SWIGTYPE_p_float AsFloat()
\r
401 global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_AsFloat__SWIG_0(swigCPtr);
\r
402 SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
\r
403 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
411 NDalicPINVOKE.Vector4_X_set(swigCPtr, value);
\r
412 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
416 float ret = NDalicPINVOKE.Vector4_X_get(swigCPtr);
\r
417 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
426 NDalicPINVOKE.Vector4_r_set(swigCPtr, value);
\r
427 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
431 float ret = NDalicPINVOKE.Vector4_r_get(swigCPtr);
\r
432 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
441 NDalicPINVOKE.Vector4_s_set(swigCPtr, value);
\r
442 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
446 float ret = NDalicPINVOKE.Vector4_s_get(swigCPtr);
\r
447 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
456 NDalicPINVOKE.Vector4_Y_set(swigCPtr, value);
\r
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
461 float ret = NDalicPINVOKE.Vector4_Y_get(swigCPtr);
\r
462 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
471 NDalicPINVOKE.Vector4_g_set(swigCPtr, value);
\r
472 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
476 float ret = NDalicPINVOKE.Vector4_g_get(swigCPtr);
\r
477 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
486 NDalicPINVOKE.Vector4_t_set(swigCPtr, value);
\r
487 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
491 float ret = NDalicPINVOKE.Vector4_t_get(swigCPtr);
\r
492 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
501 NDalicPINVOKE.Vector4_Z_set(swigCPtr, value);
\r
502 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
506 float ret = NDalicPINVOKE.Vector4_Z_get(swigCPtr);
\r
507 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
516 NDalicPINVOKE.Vector4_b_set(swigCPtr, value);
\r
517 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
521 float ret = NDalicPINVOKE.Vector4_b_get(swigCPtr);
\r
522 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
531 NDalicPINVOKE.Vector4_p_set(swigCPtr, value);
\r
532 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
536 float ret = NDalicPINVOKE.Vector4_p_get(swigCPtr);
\r
537 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
546 NDalicPINVOKE.Vector4_W_set(swigCPtr, value);
\r
547 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
551 float ret = NDalicPINVOKE.Vector4_W_get(swigCPtr);
\r
552 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
561 NDalicPINVOKE.Vector4_a_set(swigCPtr, value);
\r
562 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
566 float ret = NDalicPINVOKE.Vector4_a_get(swigCPtr);
\r
567 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
576 NDalicPINVOKE.Vector4_q_set(swigCPtr, value);
\r
577 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
581 float ret = NDalicPINVOKE.Vector4_q_get(swigCPtr);
\r
582 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r