Merge branch 'devel/master' into tizen
[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         private Vector3 Add(Vector3 rhs)
353         {
354             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Add(swigCPtr, Vector3.getCPtr(rhs)), true);
355             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
356             return ret;
357         }
358
359         private Vector3 AddAssign(Vector3 rhs)
360         {
361             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_AddAssign(swigCPtr, Vector3.getCPtr(rhs)), false);
362             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363             return ret;
364         }
365
366         private Vector3 Subtract(Vector3 rhs)
367         {
368             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
369             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370             return ret;
371         }
372
373         private Vector3 SubtractAssign(Vector3 rhs)
374         {
375             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_SubtractAssign(swigCPtr, Vector3.getCPtr(rhs)), false);
376             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
377             return ret;
378         }
379
380         private Vector3 Multiply(Vector3 rhs)
381         {
382             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
383             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
384             return ret;
385         }
386
387         private Vector3 Multiply(float rhs)
388         {
389             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
390             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
391             return ret;
392         }
393
394         private Vector3 MultiplyAssign(Vector3 rhs)
395         {
396             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), false);
397             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
398             return ret;
399         }
400
401         private Vector3 MultiplyAssign(float rhs)
402         {
403             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_1(swigCPtr, rhs), false);
404             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
405             return ret;
406         }
407
408         private Vector3 MultiplyAssign(Rotation rhs)
409         {
410             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_2(swigCPtr, Rotation.getCPtr(rhs)), false);
411             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
412             return ret;
413         }
414
415         private Vector3 Divide(Vector3 rhs)
416         {
417             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
418             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419             return ret;
420         }
421
422         private Vector3 Divide(float rhs)
423         {
424             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
425             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
426             return ret;
427         }
428
429         private Vector3 DivideAssign(Vector3 rhs)
430         {
431             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_DivideAssign__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), false);
432             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
433             return ret;
434         }
435
436         private Vector3 DivideAssign(float rhs)
437         {
438             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_DivideAssign__SWIG_1(swigCPtr, rhs), false);
439             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
440             return ret;
441         }
442
443         private Vector3 Subtract()
444         {
445             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
446             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
447             return ret;
448         }
449
450         private bool EqualTo(Vector3 rhs)
451         {
452             bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Vector3.getCPtr(rhs));
453             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
454             return ret;
455         }
456
457         private bool NotEqualTo(Vector3 rhs)
458         {
459             bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Vector3.getCPtr(rhs));
460             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
461             return ret;
462         }
463
464         private float ValueOfIndex(uint index)
465         {
466             float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
467             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
468             return ret;
469         }
470
471         internal float Dot(Vector3 other)
472         {
473             float ret = NDalicPINVOKE.Vector3_Dot(swigCPtr, Vector3.getCPtr(other));
474             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
475             return ret;
476         }
477
478         internal Vector3 Cross(Vector3 other)
479         {
480             Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Cross(swigCPtr, Vector3.getCPtr(other)), true);
481             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
482             return ret;
483         }
484
485         /// <summary>
486         /// Returns the length of the vector.
487         /// </summary>
488         /// <returns>The length of the vector</returns>
489         public float Length()
490         {
491             float ret = NDalicPINVOKE.Vector3_Length(swigCPtr);
492             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
493             return ret;
494         }
495
496         /// <summary>
497         /// Returns the length of the vector squared.<br>
498         /// This is more efficient than Length() for threshold
499         /// testing as it avoids the use of a square root.<br>
500         /// </summary>
501         /// <returns>The length of the vector squared</returns>
502         public float LengthSquared()
503         {
504             float ret = NDalicPINVOKE.Vector3_LengthSquared(swigCPtr);
505             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
506             return ret;
507         }
508
509         /// <summary>
510         /// Sets the vector to be unit length, whilst maintaining its direction.
511         /// </summary>
512         public void Normalize()
513         {
514             NDalicPINVOKE.Vector3_Normalize(swigCPtr);
515             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
516         }
517
518         /// <summary>
519         /// Clamps the vector between minimum and maximum vectors.
520         /// </summary>
521         /// <param name="min">The minimum vector</param>
522         /// <param name="max">The maximum vector</param>
523         public void Clamp(Vector3 min, Vector3 max)
524         {
525             NDalicPINVOKE.Vector3_Clamp(swigCPtr, Vector3.getCPtr(min), Vector3.getCPtr(max));
526             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
527         }
528
529         internal SWIGTYPE_p_float AsFloat()
530         {
531             global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_AsFloat__SWIG_0(swigCPtr);
532             SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
533             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
534             return ret;
535         }
536
537         /// <summary>
538         /// Returns the x & y components (or width & height, or r & g) as a Vector2.
539         /// </summary>
540         /// <returns>The partial vector contents as Vector2 (x,y)</returns>
541         public Vector2 GetVectorXY()
542         {
543             Vector2 ret = new Vector2(NDalicPINVOKE.Vector3_GetVectorXY__SWIG_0(swigCPtr), false);
544             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
545             return ret;
546         }
547
548         /// <summary>
549         /// Returns the y & z components (or height & depth, or g & b) as a Vector2.
550         /// </summary>
551         /// <returns>The partial vector contents as Vector2 (y,z)</returns>
552         public Vector2 GetVectorYZ()
553         {
554             Vector2 ret = new Vector2(NDalicPINVOKE.Vector3_GetVectorYZ__SWIG_0(swigCPtr), false);
555             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
556             return ret;
557         }
558
559         /// <summary>
560         /// x component
561         /// </summary>
562         public float X
563         {
564             set
565             {
566                 NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
567                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
568             }
569             get
570             {
571                 float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
572                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573                 return ret;
574             }
575         }
576
577         /// <summary>
578         /// width component
579         /// </summary>
580         public float Width
581         {
582             set
583             {
584                 NDalicPINVOKE.Vector3_Width_set(swigCPtr, value);
585                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
586             }
587             get
588             {
589                 float ret = NDalicPINVOKE.Vector3_Width_get(swigCPtr);
590                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
591                 return ret;
592             }
593         }
594
595         /// <summary>
596         /// red component
597         /// </summary>
598         public float R
599         {
600             set
601             {
602                 NDalicPINVOKE.Vector3_r_set(swigCPtr, value);
603                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
604             }
605             get
606             {
607                 float ret = NDalicPINVOKE.Vector3_r_get(swigCPtr);
608                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
609                 return ret;
610             }
611         }
612
613         /// <summary>
614         /// y component
615         /// </summary>
616         public float Y
617         {
618             set
619             {
620                 NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
621                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
622             }
623             get
624             {
625                 float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
626                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
627                 return ret;
628             }
629         }
630
631         /// <summary>
632         /// height component
633         /// </summary>
634         public float Height
635         {
636             set
637             {
638                 NDalicPINVOKE.Vector3_Height_set(swigCPtr, value);
639                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
640             }
641             get
642             {
643                 float ret = NDalicPINVOKE.Vector3_Height_get(swigCPtr);
644                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
645                 return ret;
646             }
647         }
648
649         /// <summary>
650         /// green component
651         /// </summary>
652         public float G
653         {
654             set
655             {
656                 NDalicPINVOKE.Vector3_g_set(swigCPtr, value);
657                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
658             }
659             get
660             {
661                 float ret = NDalicPINVOKE.Vector3_g_get(swigCPtr);
662                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
663                 return ret;
664             }
665         }
666
667         /// <summary>
668         /// z component
669         /// </summary>
670         public float Z
671         {
672             set
673             {
674                 NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
675                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
676             }
677             get
678             {
679                 float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
680                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
681                 return ret;
682             }
683         }
684
685         /// <summary>
686         /// depth component
687         /// </summary>
688         public float Depth
689         {
690             set
691             {
692                 NDalicPINVOKE.Vector3_Depth_set(swigCPtr, value);
693                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
694             }
695             get
696             {
697                 float ret = NDalicPINVOKE.Vector3_Depth_get(swigCPtr);
698                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
699                 return ret;
700             }
701         }
702
703         /// <summary>
704         /// blue component
705         /// </summary>
706         public float B
707         {
708             set
709             {
710                 NDalicPINVOKE.Vector3_b_set(swigCPtr, value);
711                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
712             }
713             get
714             {
715                 float ret = NDalicPINVOKE.Vector3_b_get(swigCPtr);
716                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
717                 return ret;
718             }
719         }
720
721     }
722
723 }