Exemple #1
0
 public GfMatrix3d(GfRotation rot) : this(UsdCsPINVOKE.new_GfMatrix3d__SWIG_7(GfRotation.getCPtr(rot)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
 public GfMatrix4f(GfRotation rotate, GfVec3f translate) : this(UsdCsPINVOKE.new_GfMatrix4f__SWIG_8(GfRotation.getCPtr(rotate), GfVec3f.getCPtr(translate)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #3
0
 public GfFrustum(GfVec3d position, GfRotation rotation, GfRange2d window, GfRange1d nearFar, GfFrustum.ProjectionType projectionType) : this(UsdCsPINVOKE.new_GfFrustum__SWIG_2(GfVec3d.getCPtr(position), GfRotation.getCPtr(rotation), GfRange2d.getCPtr(window), GfRange1d.getCPtr(nearFar), (int)projectionType), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #4
0
 public void SetRotation(GfRotation rotation)
 {
     UsdCsPINVOKE.GfFrustum_SetRotation(swigCPtr, GfRotation.getCPtr(rotation));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #5
0
        public static GfRotation RotateOntoProjected(GfVec3d v1, GfVec3d v2, GfVec3d axis)
        {
            GfRotation ret = new GfRotation(UsdCsPINVOKE.GfRotation_RotateOntoProjected(GfVec3d.getCPtr(v1), GfVec3d.getCPtr(v2), GfVec3d.getCPtr(axis)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #6
0
        public GfRotation SetRotateInto(GfVec3d rotateFrom, GfVec3d rotateTo)
        {
            GfRotation ret = new GfRotation(UsdCsPINVOKE.GfRotation_SetRotateInto(swigCPtr, GfVec3d.getCPtr(rotateFrom), GfVec3d.getCPtr(rotateTo)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #7
0
        public static bool Equals(GfRotation lhs, GfRotation rhs)
        {
            bool ret = UsdCsPINVOKE.GfRotation_Equals(GfRotation.getCPtr(lhs), GfRotation.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #8
0
        public GfRotation SetAxisAngle(GfVec3d axis, double angle)
        {
            GfRotation ret = new GfRotation(UsdCsPINVOKE.GfRotation_SetAxisAngle(swigCPtr, GfVec3d.getCPtr(axis), angle), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #9
0
        public GfMatrix4f SetTransform(GfRotation rotate, GfVec3f translate)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetTransform__SWIG_0(swigCPtr, GfRotation.getCPtr(rotate), GfVec3f.getCPtr(translate)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #10
0
        public GfMatrix4f SetLookAt(GfVec3f eyePoint, GfRotation orientation)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetLookAt__SWIG_1(swigCPtr, GfVec3f.getCPtr(eyePoint), GfRotation.getCPtr(orientation)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #11
0
        public GfMatrix4f SetRotateOnly(GfRotation rot)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetRotateOnly__SWIG_1(swigCPtr, GfRotation.getCPtr(rot)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #12
0
        public GfRotation SetQuat(GfQuatd quat)
        {
            GfRotation ret = new GfRotation(UsdCsPINVOKE.GfRotation_SetQuat(swigCPtr, GfQuatd.getCPtr(quat)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #13
0
        public static bool operator==(GfRotation lhs, GfRotation rhs)
        {
            // The Swig binding glue will re-enter this operator comparing to null, so
            // that case must be handled explicitly to avoid an infinite loop. This is still
            // not great, since it crosses the C#/C++ barrier twice. A better approache might
            // be to return a simple value from C++ that can be compared in C#.
            bool lnull = lhs as object == null;
            bool rnull = rhs as object == null;

            return((lnull == rnull) && ((lnull && rnull) || GfRotation.Equals(lhs, rhs)));
        }
Exemple #14
0
 public GfMatrix3d SetRotate(GfRotation rot) {
   GfMatrix3d ret = new GfMatrix3d(UsdCsPINVOKE.GfMatrix3d_SetRotate__SWIG_1(swigCPtr, GfRotation.getCPtr(rot)), false);
   if (UsdCsPINVOKE.SWIGPendingException.Pending) throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemple #15
0
        public GfRotation SetIdentity()
        {
            GfRotation ret = new GfRotation(UsdCsPINVOKE.GfRotation_SetIdentity(swigCPtr), false);

            return(ret);
        }
Exemple #16
0
        public GfRotation GetRotation()
        {
            GfRotation ret = new GfRotation(UsdCsPINVOKE.GfFrustum_GetRotation(swigCPtr), false);

            return(ret);
        }
Exemple #17
0
        public GfRotation GetInverse()
        {
            GfRotation ret = new GfRotation(UsdCsPINVOKE.GfRotation_GetInverse(swigCPtr), true);

            return(ret);
        }
Exemple #18
0
        public GfRotation ExtractRotation()
        {
            GfRotation ret = new GfRotation(UsdCsPINVOKE.GfMatrix4f_ExtractRotation(swigCPtr), true);

            return(ret);
        }
Exemple #19
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfRotation obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #20
0
 override public bool Equals(object rhs)
 {
     return(GfRotation.Equals(this, rhs as GfRotation));
 }