Module lyon_core::math_utils [] [src]

Various math tools that are usefull for several modules.

Functions

angle_between
atan2
compute_normal

Compute a normal vector at a point P such that x ---e1----> P ---e2---> x

directed_angle

Angle between vectors v1 and v2 (oriented clockwise assyming y points downwards). The result is a number between 0 and 2*PI.

directed_angle2
ellipse_center_to_point
ellipse_point_from_angle
fast_atan2

A slightly faster approximation of atan2.

fuzzy_eq
fuzzy_eq_f32
line_horizontal_intersection
line_intersection
segment_intersection
tangent
triangle_contains