|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- /* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.8
- *
- * 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 aiVector3D : IDisposable {
- private HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal aiVector3D(IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new HandleRef(this, cPtr);
- }
-
- internal static HandleRef getCPtr(aiVector3D obj) {
- return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~aiVector3D() {
- Dispose();
- }
-
- public virtual void Dispose() {
- lock(this) {
- if (swigCPtr.Handle != IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- AssimpPINVOKE.delete_aiVector3D(swigCPtr);
- }
- swigCPtr = new HandleRef(null, IntPtr.Zero);
- }
- GC.SuppressFinalize(this);
- }
- }
-
- public aiVector3D() : this(AssimpPINVOKE.new_aiVector3D__SWIG_0(), true) {
- }
-
- public aiVector3D(float _x, float _y, float _z) : this(AssimpPINVOKE.new_aiVector3D__SWIG_1(_x, _y, _z), true) {
- }
-
- public aiVector3D(float _xyz) : this(AssimpPINVOKE.new_aiVector3D__SWIG_2(_xyz), true) {
- }
-
- public aiVector3D(aiVector3D o) : this(AssimpPINVOKE.new_aiVector3D__SWIG_3(aiVector3D.getCPtr(o)), true) {
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public aiVector3D __addnset__(aiVector3D o) {
- aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___addnset__(swigCPtr, aiVector3D.getCPtr(o)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public aiVector3D __subnset__(aiVector3D o) {
- aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___subnset__(swigCPtr, aiVector3D.getCPtr(o)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public aiVector3D __mulnset__(float f) {
- aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___mulnset____SWIG_0(swigCPtr, f), false);
- return ret;
- }
-
- public aiVector3D __divnset__(float f) {
- aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___divnset__(swigCPtr, f), false);
- return ret;
- }
-
- public aiVector3D __mulnset__(aiMatrix3x3 mat) {
- aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___mulnset____SWIG_1(swigCPtr, aiMatrix3x3.getCPtr(mat)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public aiVector3D __mulnset__(aiMatrix4x4 mat) {
- aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___mulnset____SWIG_2(swigCPtr, aiMatrix4x4.getCPtr(mat)), false);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public float __idx__(uint i) {
- float ret = AssimpPINVOKE.aiVector3D___idx____SWIG_0(swigCPtr, i);
- return ret;
- }
-
- public bool __equal__(aiVector3D other) {
- bool ret = AssimpPINVOKE.aiVector3D___equal__(swigCPtr, aiVector3D.getCPtr(other));
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool __nequal__(aiVector3D other) {
- bool ret = AssimpPINVOKE.aiVector3D___nequal__(swigCPtr, aiVector3D.getCPtr(other));
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void Set(float pX, float pY, float pZ) {
- AssimpPINVOKE.aiVector3D_Set(swigCPtr, pX, pY, pZ);
- }
-
- public float SquareLength() {
- float ret = AssimpPINVOKE.aiVector3D_SquareLength(swigCPtr);
- return ret;
- }
-
- public float Length() {
- float ret = AssimpPINVOKE.aiVector3D_Length(swigCPtr);
- return ret;
- }
-
- public aiVector3D Normalize() {
- aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D_Normalize(swigCPtr), false);
- return ret;
- }
-
- public aiVector3D SymMul(aiVector3D o) {
- aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D_SymMul(swigCPtr, aiVector3D.getCPtr(o)), true);
- if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public float x {
- set {
- AssimpPINVOKE.aiVector3D_x_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiVector3D_x_get(swigCPtr);
- return ret;
- }
- }
-
- public float y {
- set {
- AssimpPINVOKE.aiVector3D_y_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiVector3D_y_get(swigCPtr);
- return ret;
- }
- }
-
- public float z {
- set {
- AssimpPINVOKE.aiVector3D_z_set(swigCPtr, value);
- }
- get {
- float ret = AssimpPINVOKE.aiVector3D_z_get(swigCPtr);
- return ret;
- }
- }
-
- }
|