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