public PxMat33(PxMat33 other) : this(physxPINVOKE.new_PxMat33__SWIG_7(PxMat33.getCPtr(other)), true) { if (physxPINVOKE.SWIGPendingException.Pending) { throw physxPINVOKE.SWIGPendingException.Retrieve(); } }
public PxQuat(PxMat33 m) : this(physxPINVOKE.new_PxQuat__SWIG_6(PxMat33.getCPtr(m)), true) { if (physxPINVOKE.SWIGPendingException.Pending) { throw physxPINVOKE.SWIGPendingException.Retrieve(); } }
public static PxBounds3 basisExtent(PxVec3 center, PxMat33 basis, PxVec3 extent) { PxBounds3 ret = new PxBounds3(physxPINVOKE.PxBounds3_basisExtent(PxVec3.getCPtr(center), PxMat33.getCPtr(basis), PxVec3.getCPtr(extent)), true); if (physxPINVOKE.SWIGPendingException.Pending) { throw physxPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static PxBounds3 transformFast(PxMat33 matrix, PxBounds3 bounds) { PxBounds3 ret = new PxBounds3(physxPINVOKE.PxBounds3_transformFast__SWIG_0(PxMat33.getCPtr(matrix), PxBounds3.getCPtr(bounds)), true); if (physxPINVOKE.SWIGPendingException.Pending) { throw physxPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static PxMat33 createDiagonal(PxVec3 d) { PxMat33 ret = new PxMat33(physxPINVOKE.PxMat33_createDiagonal(PxVec3.getCPtr(d)), true); if (physxPINVOKE.SWIGPendingException.Pending) { throw physxPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
static PxQuat setRotY(out PxMat33 m, float angle) { m = new PxMat33(PxIdentity); float cos = MathF.Cos(angle); float sin = MathF.Sin(angle); //BIOQUIRK: Overloaded indexers //BIOQUIRK: Also the lifetime of these pointers is wildly illegal if the PxMat33 is on the managed heap *(m.operator_Subscript(0)->operator_Subscript(0)) = *(m.operator_Subscript(2)->operator_Subscript(2)) = cos; *(m.operator_Subscript(0)->operator_Subscript(2)) = -sin; *(m.operator_Subscript(2)->operator_Subscript(0)) = sin; return(new PxQuat(m)); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PxMat33 obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public PxMat33 getInverse() { PxMat33 ret = new PxMat33(physxPINVOKE.PxMat33_getInverse(swigCPtr), true); return(ret); }