crogine/include/crogine/util/Maths.hpp
/*!
            \brief finds the shortest rotation, in radians, between the given start and end angles
            */
\brief finds the shortest rotation, in radians, between the given start and end angles
\ brief finds the shortest rotation in radians between the given start and end angles
static inline float shortestRotation(float start, float end)
            {
                float diff = end - start;
                if (diff > Const::PI) diff -= Const::TAU;
                else if (diff < -Const::PI) diff += Const::TAU;
                return diff;
            }
static inline float shortestRotation ( float start , float end ) { float diff = end - start ; if ( diff > Const :: PI ) diff -= Const :: TAU ; else if ( diff < - Const :: PI ) diff += Const :: TAU ; return diff ; }
\brief finds the shortest rotation, in radians, between the given start and end angles
\ brief finds the shortest rotation in radians between the given start and end angles