Example #1
0
        public static ReturnStatus GetRotation(ref LEAP_IE_KABSCH kabsch,
                                               out LEAP_QUATERNION rotation)
        {
            var rs = LeapIEKabschGetRotation(ref kabsch, out rotation);

            Logger.HandleReturnStatus("GetRotation", LogLevel.AllCalls, rs);
            return(rs);
        }
        public static LEAP_QUATERNION ToCQuaternion(this Quaternion q)
        {
            LEAP_QUATERNION cQuaternion = new LEAP_QUATERNION();

            cQuaternion.x = q.x;
            cQuaternion.y = q.y;
            cQuaternion.z = q.z;
            cQuaternion.w = q.w;
            return(cQuaternion);
        }
Example #3
0
 public HeadPoseEventArgs(LEAP_VECTOR head_position, LEAP_QUATERNION head_orientation) : base(LeapEvent.EVENT_POINT_MAPPING_CHANGE)
 {
     this.headPosition    = head_position;
     this.headOrientation = head_orientation;
 }
 public static Quaternion ToQuaternion(this LEAP_QUATERNION q)
 {
     return(new Quaternion(q.x, q.y, q.z, q.w));
 }
Example #5
0
 private static extern ReturnStatus LeapIEKabschGetRotation(ref LEAP_IE_KABSCH kabsch,
                                                            out LEAP_QUATERNION rotation);