Rasagar/Library/PackageCache/com.autodesk.fbx/Runtime/Scripts/FbxAMatrix.cs

273 lines
10 KiB
C#
Raw Normal View History

2024-08-30 07:33:54 -07:00
#if UNITY_EDITOR || FBXSDK_RUNTIME
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace Autodesk.Fbx {
public class FbxAMatrix : FbxDouble4x4 {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
internal FbxAMatrix(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxAMatrix_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxAMatrix obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
~FbxAMatrix() {
Dispose();
}
public override void Dispose() {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
NativeMethods.delete_FbxAMatrix(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
global::System.GC.SuppressFinalize(this);
base.Dispose();
}
}
public FbxAMatrix() : this(NativeMethods.new_FbxAMatrix__SWIG_0(), true) {
}
public FbxAMatrix(FbxAMatrix pOther) : this(NativeMethods.new_FbxAMatrix__SWIG_1(FbxAMatrix.getCPtr(pOther)), true) {
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public FbxAMatrix(FbxVector4 pT, FbxVector4 pR, FbxVector4 pS) : this(NativeMethods.new_FbxAMatrix__SWIG_2(pT, pR, pS), true) {
}
public double Get(int pY, int pX) {
double ret = NativeMethods.FbxAMatrix_Get(swigCPtr, pY, pX);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxVector4 GetT() {
var ret = NativeMethods.FbxAMatrix_GetT(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxVector4 GetR() {
var ret = NativeMethods.FbxAMatrix_GetR(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxQuaternion GetQ() {
FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxAMatrix_GetQ(swigCPtr), true);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxVector4 GetS() {
var ret = NativeMethods.FbxAMatrix_GetS(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxVector4 GetRow(int pY) {
var ret = NativeMethods.FbxAMatrix_GetRow(swigCPtr, pY);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxVector4 GetColumn(int pX) {
var ret = NativeMethods.FbxAMatrix_GetColumn(swigCPtr, pX);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetIdentity() {
NativeMethods.FbxAMatrix_SetIdentity(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetT(FbxVector4 pT) {
NativeMethods.FbxAMatrix_SetT(swigCPtr, pT);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetR(FbxVector4 pR) {
NativeMethods.FbxAMatrix_SetR(swigCPtr, pR);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetQ(FbxQuaternion pQ) {
NativeMethods.FbxAMatrix_SetQ(swigCPtr, FbxQuaternion.getCPtr(pQ));
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetS(FbxVector4 pS) {
NativeMethods.FbxAMatrix_SetS(swigCPtr, pS);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetTRS(FbxVector4 pT, FbxVector4 pR, FbxVector4 pS) {
NativeMethods.FbxAMatrix_SetTRS(swigCPtr, pT, pR, pS);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetTQS(FbxVector4 pT, FbxQuaternion pQ, FbxVector4 pS) {
NativeMethods.FbxAMatrix_SetTQS(swigCPtr, pT, FbxQuaternion.getCPtr(pQ), pS);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
private FbxAMatrix operator_Scale(double pValue) {
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_Scale(swigCPtr, pValue), true);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
private FbxAMatrix operator_InvScale(double pValue) {
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_InvScale(swigCPtr, pValue), true);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxVector4 MultT(FbxVector4 pVector4) {
var ret = NativeMethods.FbxAMatrix_MultT(swigCPtr, pVector4);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxVector4 MultR(FbxVector4 pVector4) {
var ret = NativeMethods.FbxAMatrix_MultR(swigCPtr, pVector4);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxQuaternion MultQ(FbxQuaternion pQuaternion) {
FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxAMatrix_MultQ(swigCPtr, FbxQuaternion.getCPtr(pQuaternion)), true);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxVector4 MultS(FbxVector4 pVector4) {
var ret = NativeMethods.FbxAMatrix_MultS(swigCPtr, pVector4);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
private FbxAMatrix operator_Negate() {
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_Negate(swigCPtr), true);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
private FbxAMatrix operator_Mul(FbxAMatrix pOther) {
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_Mul(swigCPtr, FbxAMatrix.getCPtr(pOther)), true);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxAMatrix Inverse() {
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_Inverse(swigCPtr), true);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxAMatrix Transpose() {
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_Transpose(swigCPtr), true);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxAMatrix Slerp(FbxAMatrix pOther, double pWeight) {
FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_Slerp(swigCPtr, FbxAMatrix.getCPtr(pOther), pWeight), true);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
private bool _equals(FbxAMatrix pOther) {
bool ret = NativeMethods.FbxAMatrix__equals(swigCPtr, FbxAMatrix.getCPtr(pOther));
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public bool IsIdentity(double pThreshold) {
bool ret = NativeMethods.FbxAMatrix_IsIdentity__SWIG_0(swigCPtr, pThreshold);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public bool IsIdentity() {
bool ret = NativeMethods.FbxAMatrix_IsIdentity__SWIG_1(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public static FbxAMatrix operator - (FbxAMatrix a) {
return a.operator_Negate();
}
public static FbxAMatrix operator * (FbxAMatrix a, double b) {
return a.operator_Scale(b);
}
public static FbxAMatrix operator * (double a, FbxAMatrix b) {
return b.operator_Scale(a);
}
public static FbxAMatrix operator / (FbxAMatrix a, double b) {
return a.operator_InvScale(b);
}
public static FbxAMatrix operator * (FbxAMatrix a, FbxAMatrix b) {
return a.operator_Mul(b);
}
public bool Equals(FbxAMatrix other) {
if (object.ReferenceEquals(other, null)) { return false; }
return _equals(other);
}
public override bool Equals(object obj){
if (object.ReferenceEquals(obj, null)) { return false; }
/* is obj a subclass of this type; if so use our Equals */
var typed = obj as FbxAMatrix;
if (!object.ReferenceEquals(typed, null)) {
return this.Equals(typed);
}
/* are we a subclass of the other type; if so use their Equals */
if (typeof(FbxAMatrix).IsSubclassOf(obj.GetType())) {
return obj.Equals(this);
}
/* types are unrelated; can't be a match */
return false;
}
public static bool operator == (FbxAMatrix a, FbxAMatrix b) {
if (object.ReferenceEquals(a, b)) { return true; }
if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
return a.Equals(b);
}
public static bool operator != (FbxAMatrix a, FbxAMatrix b) {
return !(a == b);
}
public override int GetHashCode() {
int ret = NativeMethods.FbxAMatrix_GetHashCode(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
}
#endif // UNITY_EDITOR || FBXSDK_RUNTIME