public GfCamera(GfMatrix4d transform, GfCamera.Projection projection, float horizontalAperture, float verticalAperture, float horizontalApertureOffset, float verticalApertureOffset, float focalLength, GfRange1f clippingRange, GfVec4fVector clippingPlanes, float fStop) : this(UsdCsPINVOKE.new_GfCamera__SWIG_1(GfMatrix4d.getCPtr(transform), (int)projection, horizontalAperture, verticalAperture, horizontalApertureOffset, verticalApertureOffset, focalLength, GfRange1f.getCPtr(clippingRange), GfVec4fVector.getCPtr(clippingPlanes), fStop), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public GfFrustum(GfMatrix4d camToWorldXf, GfRange2d window, GfRange1d nearFar, GfFrustum.ProjectionType projectionType) : this(UsdCsPINVOKE.new_GfFrustum__SWIG_4(GfMatrix4d.getCPtr(camToWorldXf), GfRange2d.getCPtr(window), GfRange1d.getCPtr(nearFar), (int)projectionType), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public VtValue(GfMatrix4d obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_7(GfMatrix4d.getCPtr(obj)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public GfCamera(GfMatrix4d transform) : this(UsdCsPINVOKE.new_GfCamera__SWIG_10(GfMatrix4d.getCPtr(transform)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public GfCamera(GfMatrix4d transform, GfCamera.Projection projection, float horizontalAperture) : this(UsdCsPINVOKE.new_GfCamera__SWIG_8(GfMatrix4d.getCPtr(transform), (int)projection, horizontalAperture), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public GfCamera(GfMatrix4d transform, GfCamera.Projection projection) : this(UsdCsPINVOKE.new_GfCamera__SWIG_9(GfMatrix4d.getCPtr(transform), (int)projection), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public GfBBox3d(GfRange3d box, GfMatrix4d matrix) : this(UsdCsPINVOKE.new_GfBBox3d__SWIG_3(GfRange3d.getCPtr(box), GfMatrix4d.getCPtr(matrix)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
static public UnityEngine.Matrix4x4 FromMatrix(GfMatrix4d gfMat) { // Note that USD is row-major and Unity is column-major, the arguments below are pivoted // to account for this. UnityEngine.Matrix4x4 ret = new UnityEngine.Matrix4x4(); double[] tmp = UsdIo.ArrayAllocator.Malloc <double>(16); gfMat.CopyToArray(tmp); ret[0, 0] = (float)tmp[0]; ret[1, 0] = (float)tmp[1]; ret[2, 0] = (float)tmp[2]; ret[3, 0] = (float)tmp[3]; ret[0, 1] = (float)tmp[4 + 0]; ret[1, 1] = (float)tmp[4 + 1]; ret[2, 1] = (float)tmp[4 + 2]; ret[3, 1] = (float)tmp[4 + 3]; ret[0, 2] = (float)tmp[8 + 0]; ret[1, 2] = (float)tmp[8 + 1]; ret[2, 2] = (float)tmp[8 + 2]; ret[3, 2] = (float)tmp[8 + 3]; ret[0, 3] = (float)tmp[12 + 0]; ret[1, 3] = (float)tmp[12 + 1]; ret[2, 3] = (float)tmp[12 + 2]; ret[3, 3] = (float)tmp[12 + 3]; UsdIo.ArrayAllocator.Free(tmp.GetType(), (uint)tmp.Length, tmp); return(ret); }
public VtMatrix4dArray(uint n, GfMatrix4d value) : this(UsdCsPINVOKE.new_VtMatrix4dArray__SWIG_4(n, GfMatrix4d.getCPtr(value)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public GfMatrix4f(GfMatrix4d m) : this(UsdCsPINVOKE.new_GfMatrix4f__SWIG_9(GfMatrix4d.getCPtr(m)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
protected void SetValue(int index, GfMatrix4d value) { UsdCsPINVOKE.VtMatrix4dArray_SetValue(swigCPtr, index, GfMatrix4d.getCPtr(value)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void SetPositionAndRotationFromMatrix(GfMatrix4d camToWorldXf) { UsdCsPINVOKE.GfFrustum_SetPositionAndRotationFromMatrix(swigCPtr, GfMatrix4d.getCPtr(camToWorldXf)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void SetTransform(GfMatrix4d val) { UsdCsPINVOKE.GfCamera_SetTransform(swigCPtr, GfMatrix4d.getCPtr(val)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void SetMatrix(GfMatrix4d matrix) { UsdCsPINVOKE.GfBBox3d_SetMatrix(swigCPtr, GfMatrix4d.getCPtr(matrix)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void push_back(GfMatrix4d elem) { UsdCsPINVOKE.VtMatrix4dArray_push_back(swigCPtr, GfMatrix4d.getCPtr(elem)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public static void DecomposeRotation(GfMatrix4d rot, GfVec3d TwAxis, GfVec3d FBAxis, GfVec3d LRAxis, double handedness, ref double thetaTw, ref double thetaFB, ref double thetaLR) { UsdCsPINVOKE.GfRotation_DecomposeRotation__SWIG_3(GfMatrix4d.getCPtr(rot), GfVec3d.getCPtr(TwAxis), GfVec3d.getCPtr(FBAxis), GfVec3d.getCPtr(LRAxis), handedness, ref thetaTw, ref thetaFB, ref thetaLR); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void assign(uint n, GfMatrix4d fill) { UsdCsPINVOKE.VtMatrix4dArray_assign(swigCPtr, n, GfMatrix4d.getCPtr(fill)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public static bool ComputeExtent(VtVec3fArray points, GfMatrix4d transform, VtVec3fArray extent) { bool ret = UsdCsPINVOKE.UsdGeomPointBased_ComputeExtent__SWIG_1(VtVec3fArray.getCPtr(points), GfMatrix4d.getCPtr(transform), VtVec3fArray.getCPtr(extent)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool ComputeExtent(double height, double radius, TfToken axis, GfMatrix4d transform, VtVec3fArray extent) { bool ret = UsdCsPINVOKE.UsdGeomCone_ComputeExtent__SWIG_1(height, radius, TfToken.getCPtr(axis), GfMatrix4d.getCPtr(transform), VtVec3fArray.getCPtr(extent)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool Equals(GfMatrix4d lhs, GfMatrix4d rhs) { bool ret = UsdCsPINVOKE.GfMatrix4d_Equals(GfMatrix4d.getCPtr(lhs), GfMatrix4d.getCPtr(rhs)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public GfMatrix4d SetRotate(GfRotation rot) { GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetRotate__SWIG_1(swigCPtr, GfRotation.getCPtr(rot)), false); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public GfMatrix4d SetLookAt(GfVec3d eyePoint, GfRotation orientation) { GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetLookAt__SWIG_1(swigCPtr, GfVec3d.getCPtr(eyePoint), GfRotation.getCPtr(orientation)), false); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public GfMatrix4d SetTransform(GfMatrix3d rotmx, GfVec3d translate) { GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetTransform__SWIG_1(swigCPtr, GfMatrix3d.getCPtr(rotmx), GfVec3d.getCPtr(translate)), false); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public GfMatrix4d SetTranslateOnly(GfVec3d t) { GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetTranslateOnly(swigCPtr, GfVec3d.getCPtr(t)), false); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public GfMatrix4d SetScale(GfVec3d scaleFactors) { GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetScale__SWIG_1(swigCPtr, GfVec3d.getCPtr(scaleFactors)), false); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public GfMatrix4d SetRotateOnly(GfMatrix3d mx) { GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetRotateOnly__SWIG_2(swigCPtr, GfMatrix3d.getCPtr(mx)), false); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool IntersectsViewVolume(GfBBox3d bbox, GfMatrix4d vpMat) { bool ret = UsdCsPINVOKE.GfFrustum_IntersectsViewVolume(GfBBox3d.getCPtr(bbox), GfMatrix4d.getCPtr(vpMat)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool ComputeExtent(double size, GfMatrix4d transform, VtVec3fArray extent) { bool ret = UsdCsPINVOKE.UsdGeomCube_ComputeExtent__SWIG_1(size, GfMatrix4d.getCPtr(transform), VtVec3fArray.getCPtr(extent)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public GfRay Transform(GfMatrix4d matrix) { GfRay ret = new GfRay(UsdCsPINVOKE.GfRay_Transform(swigCPtr, GfMatrix4d.getCPtr(matrix)), false); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public GfMatrix4d SetDiagonal(GfVec4d arg0) { GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetDiagonal__SWIG_1(swigCPtr, GfVec4d.getCPtr(arg0)), false); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }