Exemplo n.º 1
0
 public GfRotation(GfQuaternion quaternion) : this(UsdCsPINVOKE.new_GfRotation__SWIG_2(GfQuaternion.getCPtr(quaternion)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
        public GfRotation SetQuaternion(GfQuaternion quat)
        {
            GfRotation ret = new GfRotation(UsdCsPINVOKE.GfRotation_SetQuaternion(swigCPtr, GfQuaternion.getCPtr(quat)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 3
0
        public static bool Equals(GfQuaternion lhs, GfQuaternion rhs)
        {
            bool ret = UsdCsPINVOKE.GfQuaternion_Equals(GfQuaternion.getCPtr(lhs), GfQuaternion.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 4
0
        public static bool operator==(GfQuaternion lhs, GfQuaternion 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) || GfQuaternion.Equals(lhs, rhs)));
        }
Exemplo n.º 5
0
        public GfQuaternion GetQuaternion()
        {
            GfQuaternion ret = new GfQuaternion(UsdCsPINVOKE.GfRotation_GetQuaternion(swigCPtr), true);

            return(ret);
        }
Exemplo n.º 6
0
        public GfQuaternion ExtractRotationQuaternion()
        {
            GfQuaternion ret = new GfQuaternion(UsdCsPINVOKE.GfMatrix3d_ExtractRotationQuaternion(swigCPtr), true);

            return(ret);
        }
Exemplo n.º 7
0
        public static GfQuaternion GetIdentity()
        {
            GfQuaternion ret = new GfQuaternion(UsdCsPINVOKE.GfQuaternion_GetIdentity(), true);

            return(ret);
        }
Exemplo n.º 8
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfQuaternion obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemplo n.º 9
0
 override public bool Equals(object rhs)
 {
     return(GfQuaternion.Equals(this, rhs as GfQuaternion));
 }
Exemplo n.º 10
0
        public GfQuaternion GetInverse()
        {
            GfQuaternion ret = new GfQuaternion(UsdCsPINVOKE.GfQuaternion_GetInverse(swigCPtr), true);

            return(ret);
        }
Exemplo n.º 11
0
        public GfQuaternion GetNormalized()
        {
            GfQuaternion ret = new GfQuaternion(UsdCsPINVOKE.GfQuaternion_GetNormalized__SWIG_1(swigCPtr), true);

            return(ret);
        }
Exemplo n.º 12
0
        public GfQuaternion GetNormalized(double eps)
        {
            GfQuaternion ret = new GfQuaternion(UsdCsPINVOKE.GfQuaternion_GetNormalized__SWIG_0(swigCPtr, eps), true);

            return(ret);
        }