Combined Stage and Window class, and removed Stage class
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / Vector3.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
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 Dali {
12
13 public class Vector3 : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal Vector3(global::System.IntPtr cPtr, bool cMemoryOwn) {
18     swigCMemOwn = cMemoryOwn;
19     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20   }
21
22   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Vector3 obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~Vector3() {
27     DisposeQueue.Instance.Add(this);
28   }
29
30   public virtual void Dispose() {
31     if (!Window.IsInstalled()) {
32       DisposeQueue.Instance.Add(this);
33       return;
34     }
35
36     lock(this) {
37       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
38         if (swigCMemOwn) {
39           swigCMemOwn = false;
40           NDalicPINVOKE.delete_Vector3(swigCPtr);
41         }
42         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
43       }
44       global::System.GC.SuppressFinalize(this);
45     }
46   }
47
48
49   public static Vector3 operator+(Vector3 arg1, Vector3 arg2) {
50     return arg1.Add(arg2);
51   }
52
53   public static Vector3 operator-(Vector3 arg1, Vector3 arg2) {
54     return arg1.Subtract(arg2);
55   }
56
57   public static Vector3 operator-(Vector3 arg1) {
58     return arg1.Subtract();
59   }
60
61   public static Vector3 operator*(Vector3 arg1, Vector3 arg2) {
62     return arg1.Multiply(arg2);
63   }
64
65   public static Vector3 operator*(Vector3 arg1, float arg2) {
66     return arg1.Multiply(arg2);
67   }
68
69   public static Vector3 operator/(Vector3 arg1, Vector3 arg2) {
70     return arg1.Divide(arg2);
71   }
72
73   public static Vector3 operator/(Vector3 arg1, float arg2) {
74     return arg1.Divide(arg2);
75   }
76
77   public float this[uint index]
78   {
79     get
80     {
81       return ValueOfIndex(index);
82     }
83   }
84
85   public static Vector3 GetVector3FromPtr(global::System.IntPtr cPtr) {
86     Vector3 ret = new Vector3(cPtr, false);
87     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
88        return ret;
89   }
90
91
92   public Vector3() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true) {
93     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
94   }
95
96   public Vector3(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true) {
97     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
98   }
99
100   public Vector3(float[] array) : this(NDalicPINVOKE.new_Vector3__SWIG_2(array), true) {
101     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
102   }
103
104   public Vector3(Vector2 vec2) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Vector2.getCPtr(vec2)), true) {
105     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
106   }
107
108   public Vector3(Vector4 vec4) : this(NDalicPINVOKE.new_Vector3__SWIG_4(Vector4.getCPtr(vec4)), true) {
109     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110   }
111
112   public static Vector3 ONE {
113     get {
114       global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
115       Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
116       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117       return ret;
118     } 
119   }
120
121   public static Vector3 XAXIS {
122     get {
123       global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
124       Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
125       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126       return ret;
127     } 
128   }
129
130   public static Vector3 YAXIS {
131     get {
132       global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
133       Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
134       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135       return ret;
136     } 
137   }
138
139   public static Vector3 ZAXIS {
140     get {
141       global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
142       Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
143       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
144       return ret;
145     } 
146   }
147
148   public static Vector3 NEGATIVE_XAXIS {
149     get {
150       global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
151       Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
152       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153       return ret;
154     } 
155   }
156
157   public static Vector3 NEGATIVE_YAXIS {
158     get {
159       global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
160       Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
161       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
162       return ret;
163     } 
164   }
165
166   public static Vector3 NEGATIVE_ZAXIS {
167     get {
168       global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
169       Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
170       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
171       return ret;
172     } 
173   }
174
175   public static Vector3 ZERO {
176     get {
177       global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
178       Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);
179       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
180       return ret;
181     } 
182   }
183
184   public Vector3 Assign(float[] array) {
185     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Assign__SWIG_0(swigCPtr, array), false);
186     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
187     return ret;
188   }
189
190   public Vector3 Assign(Vector2 rhs) {
191     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Assign__SWIG_1(swigCPtr, Vector2.getCPtr(rhs)), false);
192     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
193     return ret;
194   }
195
196   public Vector3 Assign(Vector4 rhs) {
197     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Assign__SWIG_2(swigCPtr, Vector4.getCPtr(rhs)), false);
198     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
199     return ret;
200   }
201
202   public Vector3 Add(Vector3 rhs) {
203     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Add(swigCPtr, Vector3.getCPtr(rhs)), true);
204     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
205     return ret;
206   }
207
208   public Vector3 AddAssign(Vector3 rhs) {
209     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_AddAssign(swigCPtr, Vector3.getCPtr(rhs)), false);
210     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
211     return ret;
212   }
213
214   public Vector3 Subtract(Vector3 rhs) {
215     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
216     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
217     return ret;
218   }
219
220   public Vector3 SubtractAssign(Vector3 rhs) {
221     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_SubtractAssign(swigCPtr, Vector3.getCPtr(rhs)), false);
222     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
223     return ret;
224   }
225
226   public Vector3 Multiply(Vector3 rhs) {
227     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
228     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
229     return ret;
230   }
231
232   public Vector3 Multiply(float rhs) {
233     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
234     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
235     return ret;
236   }
237
238   public Vector3 MultiplyAssign(Vector3 rhs) {
239     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), false);
240     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
241     return ret;
242   }
243
244   public Vector3 MultiplyAssign(float rhs) {
245     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_1(swigCPtr, rhs), false);
246     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
247     return ret;
248   }
249
250   public Vector3 MultiplyAssign(Rotation rhs) {
251     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_MultiplyAssign__SWIG_2(swigCPtr, Rotation.getCPtr(rhs)), false);
252     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
253     return ret;
254   }
255
256   public Vector3 Divide(Vector3 rhs) {
257     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), true);
258     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
259     return ret;
260   }
261
262   public Vector3 Divide(float rhs) {
263     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
264     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
265     return ret;
266   }
267
268   public Vector3 DivideAssign(Vector3 rhs) {
269     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_DivideAssign__SWIG_0(swigCPtr, Vector3.getCPtr(rhs)), false);
270     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
271     return ret;
272   }
273
274   public Vector3 DivideAssign(float rhs) {
275     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_DivideAssign__SWIG_1(swigCPtr, rhs), false);
276     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
277     return ret;
278   }
279
280   public Vector3 Subtract() {
281     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
282     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
283     return ret;
284   }
285
286   public bool EqualTo(Vector3 rhs) {
287     bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Vector3.getCPtr(rhs));
288     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
289     return ret;
290   }
291
292   public bool NotEqualTo(Vector3 rhs) {
293     bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Vector3.getCPtr(rhs));
294     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
295     return ret;
296   }
297
298   public float ValueOfIndex(uint index) {
299     float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
300     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
301     return ret;
302   }
303
304   public float Dot(Vector3 other) {
305     float ret = NDalicPINVOKE.Vector3_Dot(swigCPtr, Vector3.getCPtr(other));
306     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
307     return ret;
308   }
309
310   public Vector3 Cross(Vector3 other) {
311     Vector3 ret = new Vector3(NDalicPINVOKE.Vector3_Cross(swigCPtr, Vector3.getCPtr(other)), true);
312     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
313     return ret;
314   }
315
316   public float Length() {
317     float ret = NDalicPINVOKE.Vector3_Length(swigCPtr);
318     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
319     return ret;
320   }
321
322   public float LengthSquared() {
323     float ret = NDalicPINVOKE.Vector3_LengthSquared(swigCPtr);
324     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
325     return ret;
326   }
327
328   public void Normalize() {
329     NDalicPINVOKE.Vector3_Normalize(swigCPtr);
330     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
331   }
332
333   public void Clamp(Vector3 min, Vector3 max) {
334     NDalicPINVOKE.Vector3_Clamp(swigCPtr, Vector3.getCPtr(min), Vector3.getCPtr(max));
335     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
336   }
337
338   public SWIGTYPE_p_float AsFloat() {
339     global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_AsFloat__SWIG_0(swigCPtr);
340     SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
341     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
342     return ret;
343   }
344
345   public Vector2 GetVectorXY() {
346     Vector2 ret = new Vector2(NDalicPINVOKE.Vector3_GetVectorXY__SWIG_0(swigCPtr), false);
347     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
348     return ret;
349   }
350
351   public Vector2 GetVectorYZ() {
352     Vector2 ret = new Vector2(NDalicPINVOKE.Vector3_GetVectorYZ__SWIG_0(swigCPtr), false);
353     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
354     return ret;
355   }
356
357   public float X {
358     set {
359       NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
360       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
361     } 
362     get {
363       float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
364       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
365       return ret;
366     } 
367   }
368
369   public float Width {
370     set {
371       NDalicPINVOKE.Vector3_Width_set(swigCPtr, value);
372       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
373     } 
374     get {
375       float ret = NDalicPINVOKE.Vector3_Width_get(swigCPtr);
376       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
377       return ret;
378     } 
379   }
380
381   public float r {
382     set {
383       NDalicPINVOKE.Vector3_r_set(swigCPtr, value);
384       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
385     } 
386     get {
387       float ret = NDalicPINVOKE.Vector3_r_get(swigCPtr);
388       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
389       return ret;
390     } 
391   }
392
393   public float Y {
394     set {
395       NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
396       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
397     } 
398     get {
399       float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
400       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
401       return ret;
402     } 
403   }
404
405   public float Height {
406     set {
407       NDalicPINVOKE.Vector3_Height_set(swigCPtr, value);
408       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409     } 
410     get {
411       float ret = NDalicPINVOKE.Vector3_Height_get(swigCPtr);
412       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
413       return ret;
414     } 
415   }
416
417   public float g {
418     set {
419       NDalicPINVOKE.Vector3_g_set(swigCPtr, value);
420       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421     } 
422     get {
423       float ret = NDalicPINVOKE.Vector3_g_get(swigCPtr);
424       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
425       return ret;
426     } 
427   }
428
429   public float Z {
430     set {
431       NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
432       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
433     } 
434     get {
435       float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
436       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
437       return ret;
438     } 
439   }
440
441   public float Depth {
442     set {
443       NDalicPINVOKE.Vector3_Depth_set(swigCPtr, value);
444       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
445     } 
446     get {
447       float ret = NDalicPINVOKE.Vector3_Depth_get(swigCPtr);
448       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
449       return ret;
450     } 
451   }
452
453   public float b {
454     set {
455       NDalicPINVOKE.Vector3_b_set(swigCPtr, value);
456       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457     } 
458     get {
459       float ret = NDalicPINVOKE.Vector3_b_get(swigCPtr);
460       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
461       return ret;
462     } 
463   }
464
465 }
466
467 }