Beispiel #1
0
        /// <summary>
        /// Rotates the Matrix Y axis
        /// </summary>
        /// <param name="radians"></param>
        public void RotateY(float radians)
        {
            Matrix3 m = new Matrix3();

            m.SetRotateY(radians);

            Set(this * m);
        }
Beispiel #2
0
        /// <summary>
        /// Rotates all rotational axises of the Matrix
        /// </summary>
        /// <param name="pitch"></param>
        /// <param name="yaw"></param>
        /// <param name="roll"></param>
        void SetEuler(float pitch, float yaw, float roll)
        {
            Matrix3 x = new Matrix3();
            Matrix3 y = new Matrix3();
            Matrix3 z = new Matrix3();

            x.SetRotateX(pitch);
            y.SetRotateY(yaw);
            z.SetRotateZ(roll);

            Set(z * y * x);
        }