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