2010-05-27 18:28:02 +00:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
2010-07-12 13:13:43 +00:00
|
|
|
* Version 2.0.0
|
2010-05-27 18:28:02 +00:00
|
|
|
*
|
|
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
|
|
|
* the SWIG interface file instead.
|
|
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
public class aiVector2D : IDisposable {
|
|
|
|
private HandleRef swigCPtr;
|
|
|
|
protected bool swigCMemOwn;
|
|
|
|
|
|
|
|
internal aiVector2D(IntPtr cPtr, bool cMemoryOwn) {
|
|
|
|
swigCMemOwn = cMemoryOwn;
|
|
|
|
swigCPtr = new HandleRef(this, cPtr);
|
|
|
|
}
|
|
|
|
|
|
|
|
internal static HandleRef getCPtr(aiVector2D obj) {
|
|
|
|
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
~aiVector2D() {
|
|
|
|
Dispose();
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual void Dispose() {
|
|
|
|
lock(this) {
|
|
|
|
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
|
|
if (swigCMemOwn) {
|
|
|
|
swigCMemOwn = false;
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.delete_aiVector2D(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
|
|
}
|
|
|
|
GC.SuppressFinalize(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
public aiVector2D() : this(AssimpPINVOKE.new_aiVector2D__SWIG_0(), true) {
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
public aiVector2D(float _x, float _y) : this(AssimpPINVOKE.new_aiVector2D__SWIG_1(_x, _y), true) {
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
public aiVector2D(float _xyz) : this(AssimpPINVOKE.new_aiVector2D__SWIG_2(_xyz), true) {
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
public aiVector2D(aiVector2D o) : this(AssimpPINVOKE.new_aiVector2D__SWIG_3(aiVector2D.getCPtr(o)), true) {
|
|
|
|
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void Set(float pX, float pY) {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiVector2D_Set(swigCPtr, pX, pY);
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public float SquareLength() {
|
2010-07-12 13:13:43 +00:00
|
|
|
float ret = AssimpPINVOKE.aiVector2D_SquareLength(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public float Length() {
|
2010-07-12 13:13:43 +00:00
|
|
|
float ret = AssimpPINVOKE.aiVector2D_Length(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiVector2D Normalize() {
|
2010-07-12 13:13:43 +00:00
|
|
|
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D_Normalize(swigCPtr), false);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiVector2D __addnset__(aiVector2D o) {
|
2010-07-12 13:13:43 +00:00
|
|
|
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D___addnset__(swigCPtr, aiVector2D.getCPtr(o)), false);
|
|
|
|
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiVector2D __subnset__(aiVector2D o) {
|
2010-07-12 13:13:43 +00:00
|
|
|
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D___subnset__(swigCPtr, aiVector2D.getCPtr(o)), false);
|
|
|
|
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiVector2D __mulnset__(float f) {
|
2010-07-12 13:13:43 +00:00
|
|
|
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D___mulnset__(swigCPtr, f), false);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiVector2D __divnset__(float f) {
|
2010-07-12 13:13:43 +00:00
|
|
|
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D___divnset__(swigCPtr, f), false);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public float __idx__(uint i) {
|
2010-07-12 13:13:43 +00:00
|
|
|
float ret = AssimpPINVOKE.aiVector2D___idx____SWIG_0(swigCPtr, i);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool __equal__(aiVector2D other) {
|
2010-07-12 13:13:43 +00:00
|
|
|
bool ret = AssimpPINVOKE.aiVector2D___equal__(swigCPtr, aiVector2D.getCPtr(other));
|
|
|
|
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool __nequal__(aiVector2D other) {
|
2010-07-12 13:13:43 +00:00
|
|
|
bool ret = AssimpPINVOKE.aiVector2D___nequal__(swigCPtr, aiVector2D.getCPtr(other));
|
|
|
|
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiVector2D __set__(float f) {
|
2010-07-12 13:13:43 +00:00
|
|
|
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D___set__(swigCPtr, f), false);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiVector2D SymMul(aiVector2D o) {
|
2010-07-12 13:13:43 +00:00
|
|
|
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D_SymMul(swigCPtr, aiVector2D.getCPtr(o)), true);
|
|
|
|
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public float x {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiVector2D_x_set(swigCPtr, value);
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
get {
|
2010-07-12 13:13:43 +00:00
|
|
|
float ret = AssimpPINVOKE.aiVector2D_x_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public float y {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiVector2D_y_set(swigCPtr, value);
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
get {
|
2010-07-12 13:13:43 +00:00
|
|
|
float ret = AssimpPINVOKE.aiVector2D_y_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|