Universe.Physics.PrimMesher.Quat.Quat C# (CSharp) Method

Quat() public method

public Quat ( Coord axis, float angle ) : System
axis Coord
angle float
return System
        public Quat (Coord axis, float angle)
        {
            axis = axis.Normalize ();

            angle *= 0.5f;
            float c = (float)Math.Cos (angle);
            float s = (float)Math.Sin (angle);

            X = axis.X * s;
            Y = axis.Y * s;
            Z = axis.Z * s;
            W = c;

            Normalize ();
        }

Same methods

Quat::Quat ( float x, float y, float z, float w ) : System