MbDirection Normalized Vector in Two-Dimensional Space

MbDirection() class is declared in mb_vector.h file.

MbDirection() normalized vector describes direction or rotation angle in 2D space; it is defined by two components (ax and ay) in Cartesian coordinate system.The length of normalized vector is equal to one, and its components are sine and cosine of the angle between OX axis and the normalized vector. Therefore, ax = cos(𝛼), ay = sin(𝛼), where 𝛼 is the angle between the normalized vector and x-axis of the coordinate system.