Fractrace.Geometry.VecRotation.toAxisAngle C# (CSharp) Method

toAxisAngle() protected method

if this rotation is not already coded as axis angle then convert it to axis angle
protected toAxisAngle ( ) : void
return void
        protected void toAxisAngle()
        {
            double s = Math.Sqrt(1 - Angle * Angle);
            if (Math.Abs(s) < 0.001) s = 1;
            Angle = (double)(2 * Math.Acos(Angle));
            X = (double)(X / s);
            Y = (double)(Y / s);
            Z = (double)(Z / s);
        }