Support for as keyword instead of DownCast
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Vector3.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.9
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10
11 namespace Tizen.NUI
12 {
13
14     /// <summary>
15     /// A three dimensional vector.
16     /// </summary>
17     public class Vector3 : global::System.IDisposable
18     {
19         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20         protected bool swigCMemOwn;
21
22         internal Vector3(global::System.IntPtr cPtr, bool cMemoryOwn)
23         {
24             swigCMemOwn = cMemoryOwn;
25             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
26         }
27
28         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Vector3 obj)
29         {
30             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
31         }
32
33         //A Flag to check who called Dispose(). (By User or DisposeQueue)
34         private bool isDisposeQueued = false;
35         //A Flat to check if it is already disposed.
36         protected bool disposed = false;
37
38         ~Vector3()
39         {
40             if(!isDisposeQueued)
41             {
42                 isDisposeQueued = true;
43                 DisposeQueue.Instance.Add(this);
44             }
45         }
46
47         public void Dispose()
48         {
49             //Throw excpetion if Dispose() is called in separate thread.
50             if (!Window.IsInstalled())
51             {
52                 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
53             }
54
55             if (isDisposeQueued)
56             {
57                 Dispose(DisposeTypes.Implicit);
58             }
59             else
60             {
61                 Dispose(DisposeTypes.Explicit);
62                 System.GC.SuppressFinalize(this);
63             }
64         }
65
66         protected virtual void Dispose(DisposeTypes type)
67         {
68             if (disposed)
69             {
70                 return;
71             }
72
73             if(type == DisposeTypes.Explicit)
74             {
75                 //Called by User
76                 //Release your own managed resources here.
77                 //You should release all of your own disposable objects here.
78             }
79
80             //Release your own unmanaged resources here.
81             //You should not access any managed member here except static instance.
82             //because the execution order of Finalizes is non-deterministic.
83
84             if (swigCPtr.Handle != global::System.IntPtr.Zero)
85             {
86                 if (swigCMemOwn)
87                 {
88                     swigCMemOwn = false;
89                     NDalicPINVOKE.delete_Vector3(swigCPtr);
90                 }
91                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
92             }
93             disposed = true;
94         }
95
96         /// <summary>
97         /// Addition operator.
98         /// </summary>
99         /// <param name="arg1">First Value</param>
100         /// <param name="arg2">Second Value</param>
101         /// <returns>A vector containing the result of the addition</returns>
102         public static Vector3 operator +(Vector3 arg1, Vector3 arg2)
103         {
104             return arg1.Add(arg2);
105         }
106
107         /// <summary>
108         /// Subtraction operator.
109         /// </summary>
110         /// <param name="arg1">First Value</param>
111         /// <param name="arg2">Second Value</param>
112         /// <returns>A vector containing the result of the subtraction</returns>
113         public static Vector3 operator -(Vector3 arg1, Vector3 arg2)
114         {
115             return arg1.Subtract(arg2);
116         }
117
118         /// <summary>
119         /// Unary negation operator.
120         /// </summary>
121         /// <param name="arg1">Target Value</param>
122         /// <returns>A vector containg the negation</returns>
123         public static Vector3 operator -(Vector3 arg1)
124         {
125             return arg1.Subtract();
126         }
127
128         /// <summary>
129         /// Multiplication operator.
130         /// </summary>
131         /// <param name="arg1">First Value</param>
132         /// <param name="arg2">Second Value</param>
133         /// <returns>A vector containing the result of the multiplication</returns>
134         public static Vector3 operator *(Vector3 arg1, Vector3 arg2)
135         {
136             return arg1.Multiply(arg2);
137         }
138
139         /// <summary>
140         /// Multiplication operator.
141         /// </summary>
142         /// <param name="arg1">First Value</param>
143         /// <param name="arg2">The float value to scale the vector</param>
144         /// <returns>A vector containing the result of the scaling</returns>
145         public static Vector3 operator *(Vector3 arg1, float arg2)
146         {
147             return arg1.Multiply(arg2);
148         }
149
150         /// <summary>
151         /// Division operator.
152         /// </summary>
153         /// <param name="arg1">First Value</param>
154         /// <param name="arg2">Second Value</param>
155         /// <returns>A vector containing the result of the division</returns>
156         public static Vector3 operator /(Vector3 arg1, Vector3 arg2)
157         {
158             return arg1.Divide(arg2);
159         }
160
161         /// <summary>
162         /// Division operator.
163         /// </summary>
164         /// <param name="arg1">First Value</param>
165         /// <param name="arg2">The float value to scale the vector by</param>
166         /// <returns>A vector containing the result of the scaling</returns>
167         public static Vector3 operator /(Vector3 arg1, float arg2)
168         {
169             return arg1.Divide(arg2);
170         }
171
172         /// <summary>
173         /// Array subscript operator overload.
174         /// </summary>
175         /// <param name="index">Subscript index</param>
176         /// <returns>The float at the given index</returns>
177         public float this[uint index]
178         {
179             get
180             {
181                 return ValueOfIndex(index);
182             }
183         }
184
185         internal static Vector3 GetVector3FromPtr(global::System.IntPtr cPtr)
186         {
187             Vector3 ret = new Vector3(cPtr, false);
188             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
189             return ret;
190         }
191
192         /// <summary>
193         /// Constructor.
194         /// </summary>
195         public Vector3() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
196         {
197             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
198         }
199
200         /// <summary>
201         /// Default constructor, initializes the vector to 0.
202         /// </summary>
203         /// <param name="x">x (or width) component</param>
204         /// <param name="y">y (or height) component</param>
205         /// <param name="z">z (or depth) component</param>
206         public Vector3(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
207         {
208             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209         }
210
211         /// <summary>
212         /// Conversion constructor from an array of three floats.
213         /// </summary>
214         /// <param name="array">Array of xyz</param>
215         public Vector3(float[] array) : this(NDalicPINVOKE.new_Vector3__SWIG_2(array), true)
216         {
217             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
218         }
219
220         /// <summary>
221         /// Constructor.
222         /// </summary>
223         /// <param name="vec2">Vector2 to create this vector from</param>
224         public Vector3(Vector2 vec2) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Vector2.getCPtr(vec2)), true)
225         {
226             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227         }
228
229         /// <summary>
230         /// Constructor
231         /// </summary>
232         /// <param name="vec4">Vector4 to create this vector from</param>
233         public Vector3(Vector4 vec4) : this(NDalicPINVOKE.new_Vector3__SWIG_4(Vector4.getCPtr(vec4)), true)
234         {
235             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236         }
237
238         /// <summary>
239         /// (1.0f,1.0f,1.0f)
240         /// </summary>
241         public static Vector3 One
242         {
243             get
244             {
245                 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
246                 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
247                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
248                 return ret;
249             }
250         }
251
252         /// <summary>
253         /// Vector representing the X axis
254         /// </summary>
255         public static Vector3 XAxis
256         {
257             get
258             {
259                 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
260                 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
261                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
262                 return ret;
263             }
264         }
265
266         /// <summary>
267         /// Vector representing the Y axis
268         /// </summary>
269         public static Vector3 YAxis
270         {
271             get
272             {
273                 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
274                 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
275                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
276                 return ret;
277             }
278         }
279
280         /// <summary>
281         /// Vector representing the Z axis
282         /// </summary>
283         public static Vector3 ZAxis
284         {
285             get
286             {
287                 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
288                 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
289                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
290                 return ret;
291             }
292         }
293
294         /// <summary>
295         /// Vector representing the negative X axis
296         /// </summary>
297         public static Vector3 NegativeXAxis
298         {
299             get
300             {
301                 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
302                 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
303                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
304                 return ret;
305             }
306         }
307
308         /// <summary>
309         /// Vector representing the negative Y axis
310         /// </summary>
311         public static Vector3 NegativeYAxis
312         {
313             get
314             {
315                 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
316                 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
317                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
318                 return ret;
319             }
320         }
321
322         /// <summary>
323         /// Vector representing the negative Z axis
324         /// </summary>
325         public static Vector3 NegativeZAxis
326         {
327             get
328             {
329                 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
330                 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
331                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
332                 return ret;
333             }
334         }
335
336         /// <summary>
337         /// (0.0f, 0.0f, 0.0f)
338         /// </summary>
339         public static Vector3 Zero
340         {
341             get
342             {
343                 global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
344                 Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
345                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
346                 return ret;
347             }
348         }
349
350         private Vector3 Add(Vector3 rhs)
351         {
352             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Add(swigCPtr, Vector3.getCPtr(rhs)), true);
353             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
354             return ret;
355         }
356
357         private Vector3 AddAssign(Vector3 rhs)
358         {
359             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_AddAssign(swigCPtr, Vector3.getCPtr(rhs)), false);
360             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
361             return ret;
362         }
363
364         private Vector3 Subtract(Vector3 rhs)
365         {
366             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
367             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
368             return ret;
369         }
370
371         private Vector3 SubtractAssign(Vector3 rhs)
372         {
373             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_SubtractAssign(swigCPtr, Vector3.getCPtr(rhs)), false);
374             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
375             return ret;
376         }
377
378         private Vector3 Multiply(Vector3 rhs)
379         {
380             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
381             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
382             return ret;
383         }
384
385         private Vector3 Multiply(float rhs)
386         {
387             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
388             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
389             return ret;
390         }
391
392         private Vector3 MultiplyAssign(Vector3 rhs)
393         {
394             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), false);
395             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396             return ret;
397         }
398
399         private Vector3 MultiplyAssign(float rhs)
400         {
401             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_1(swigCPtr, rhs), false);
402             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403             return ret;
404         }
405
406         private Vector3 MultiplyAssign(Rotation rhs)
407         {
408             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_2(swigCPtr, Rotation.getCPtr(rhs)), false);
409             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
410             return ret;
411         }
412
413         private Vector3 Divide(Vector3 rhs)
414         {
415             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
416             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
417             return ret;
418         }
419
420         private Vector3 Divide(float rhs)
421         {
422             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
423             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424             return ret;
425         }
426
427         private Vector3 DivideAssign(Vector3 rhs)
428         {
429             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_DivideAssign__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), false);
430             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
431             return ret;
432         }
433
434         private Vector3 DivideAssign(float rhs)
435         {
436             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_DivideAssign__SWIG_1(swigCPtr, rhs), false);
437             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
438             return ret;
439         }
440
441         private Vector3 Subtract()
442         {
443             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
444             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
445             return ret;
446         }
447
448         private bool EqualTo(Vector3 rhs)
449         {
450             bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Vector3.getCPtr(rhs));
451             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
452             return ret;
453         }
454
455         private bool NotEqualTo(Vector3 rhs)
456         {
457             bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Vector3.getCPtr(rhs));
458             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
459             return ret;
460         }
461
462         private float ValueOfIndex(uint index)
463         {
464             float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
465             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
466             return ret;
467         }
468
469         internal float Dot(Vector3 other)
470         {
471             float ret = NDalicPINVOKE.Vector3_Dot(swigCPtr, Vector3.getCPtr(other));
472             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
473             return ret;
474         }
475
476         internal Vector3 Cross(Vector3 other)
477         {
478             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Cross(swigCPtr, Vector3.getCPtr(other)), true);
479             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
480             return ret;
481         }
482
483         /// <summary>
484         /// Returns the length of the vector.
485         /// </summary>
486         /// <returns>The length of the vector</returns>
487         public float Length()
488         {
489             float ret = NDalicPINVOKE.Vector3_Length(swigCPtr);
490             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491             return ret;
492         }
493
494         /// <summary>
495         /// Returns the length of the vector squared.<br>
496         /// This is more efficient than Length() for threshold
497         /// testing as it avoids the use of a square root.<br>
498         /// </summary>
499         /// <returns>The length of the vector squared</returns>
500         public float LengthSquared()
501         {
502             float ret = NDalicPINVOKE.Vector3_LengthSquared(swigCPtr);
503             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
504             return ret;
505         }
506
507         /// <summary>
508         /// Sets the vector to be unit length, whilst maintaining its direction.
509         /// </summary>
510         public void Normalize()
511         {
512             NDalicPINVOKE.Vector3_Normalize(swigCPtr);
513             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
514         }
515
516         /// <summary>
517         /// Clamps the vector between minimum and maximum vectors.
518         /// </summary>
519         /// <param name="min">The minimum vector</param>
520         /// <param name="max">The maximum vector</param>
521         public void Clamp(Vector3 min, Vector3 max)
522         {
523             NDalicPINVOKE.Vector3_Clamp(swigCPtr, Vector3.getCPtr(min), Vector3.getCPtr(max));
524             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525         }
526
527         internal SWIGTYPE_p_float AsFloat()
528         {
529             global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_AsFloat__SWIG_0(swigCPtr);
530             SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
531             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
532             return ret;
533         }
534
535         /// <summary>
536         /// Returns the x & y components (or width & height, or r & g) as a Vector2.
537         /// </summary>
538         /// <returns>The partial vector contents as Vector2 (x,y)</returns>
539         public Vector2 GetVectorXY()
540         {
541             Vector2 ret = new Vector2(NDalicPINVOKE.Vector3_GetVectorXY__SWIG_0(swigCPtr), false);
542             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
543             return ret;
544         }
545
546         /// <summary>
547         /// Returns the y & z components (or height & depth, or g & b) as a Vector2.
548         /// </summary>
549         /// <returns>The partial vector contents as Vector2 (y,z)</returns>
550         public Vector2 GetVectorYZ()
551         {
552             Vector2 ret = new Vector2(NDalicPINVOKE.Vector3_GetVectorYZ__SWIG_0(swigCPtr), false);
553             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
554             return ret;
555         }
556
557         /// <summary>
558         /// x component
559         /// </summary>
560         public float X
561         {
562             set
563             {
564                 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
565                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
566             }
567             get
568             {
569                 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
570                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
571                 return ret;
572             }
573         }
574
575         /// <summary>
576         /// width component
577         /// </summary>
578         public float Width
579         {
580             set
581             {
582                 NDalicPINVOKE.Vector3_Width_set(swigCPtr, value);
583                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
584             }
585             get
586             {
587                 float ret = NDalicPINVOKE.Vector3_Width_get(swigCPtr);
588                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
589                 return ret;
590             }
591         }
592
593         /// <summary>
594         /// red component
595         /// </summary>
596         public float R
597         {
598             set
599             {
600                 NDalicPINVOKE.Vector3_r_set(swigCPtr, value);
601                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
602             }
603             get
604             {
605                 float ret = NDalicPINVOKE.Vector3_r_get(swigCPtr);
606                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
607                 return ret;
608             }
609         }
610
611         /// <summary>
612         /// y component
613         /// </summary>
614         public float Y
615         {
616             set
617             {
618                 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
619                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
620             }
621             get
622             {
623                 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
624                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
625                 return ret;
626             }
627         }
628
629         /// <summary>
630         /// height component
631         /// </summary>
632         public float Height
633         {
634             set
635             {
636                 NDalicPINVOKE.Vector3_Height_set(swigCPtr, value);
637                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
638             }
639             get
640             {
641                 float ret = NDalicPINVOKE.Vector3_Height_get(swigCPtr);
642                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
643                 return ret;
644             }
645         }
646
647         /// <summary>
648         /// green component
649         /// </summary>
650         public float G
651         {
652             set
653             {
654                 NDalicPINVOKE.Vector3_g_set(swigCPtr, value);
655                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
656             }
657             get
658             {
659                 float ret = NDalicPINVOKE.Vector3_g_get(swigCPtr);
660                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
661                 return ret;
662             }
663         }
664
665         /// <summary>
666         /// z component
667         /// </summary>
668         public float Z
669         {
670             set
671             {
672                 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
673                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
674             }
675             get
676             {
677                 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
678                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
679                 return ret;
680             }
681         }
682
683         /// <summary>
684         /// depth component
685         /// </summary>
686         public float Depth
687         {
688             set
689             {
690                 NDalicPINVOKE.Vector3_Depth_set(swigCPtr, value);
691                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
692             }
693             get
694             {
695                 float ret = NDalicPINVOKE.Vector3_Depth_get(swigCPtr);
696                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
697                 return ret;
698             }
699         }
700
701         /// <summary>
702         /// blue component
703         /// </summary>
704         public float B
705         {
706             set
707             {
708                 NDalicPINVOKE.Vector3_b_set(swigCPtr, value);
709                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
710             }
711             get
712             {
713                 float ret = NDalicPINVOKE.Vector3_b_get(swigCPtr);
714                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
715                 return ret;
716             }
717         }
718
719     }
720
721 }