示例#1
0
        public static warp_Quaternion Ode2WarpQuaternion(Ode.Quaternion odeQ)
        {
            warp_Quaternion q = new warp_Quaternion(
                ( float )odeQ.X,
                ( float )odeQ.Y,
                ( float )odeQ.Z,
                ( float )odeQ.W);

            return(q);
        }
示例#2
0
        public static Ode.Quaternion Warp2OdeQuaternion(warp_Quaternion q)
        {
            Ode.Quaternion odeQ = new Ode.Quaternion();

            odeQ.W = q.W;
            odeQ.X = q.X;
            odeQ.Y = q.Y;
            odeQ.Z = q.Z;

            return(odeQ);
        }
示例#3
0
        public static Ode.Quaternion Warp2OdeQuaternion( warp_Quaternion q )
        {
            Ode.Quaternion odeQ = new Ode.Quaternion();

            odeQ.W = q.W;
            odeQ.X = q.X;
            odeQ.Y = q.Y;
            odeQ.Z = q.Z;
            
            return odeQ;
        }