Ejemplo n.º 1
0
        public SourceQuaternion(SourceDegreeEuler angle)
        {
            SourceRadianEuler radians = new SourceRadianEuler(angle);
            var t = new SourceQuaternion();

            MathUtils.AngleQuaternion(radians, ref t);
            this.x = t.x;
            this.y = t.y;
            this.z = t.z;
            this.w = t.w;
        }
 public SourceRadianEuler(SourceDegreeEuler angles)
 {
     Init(MathUtils.DEG2RAD(angles.x), MathUtils.DEG2RAD(angles.y), MathUtils.DEG2RAD(angles.z));
 }