Home | All Classes | Grouped Classes | Index | Search

Class CL_LineMath

Math operations on 2D lines. More...

Derived from: none
Derived by: none
Group: Core (Math)

#include <ClanLib/core.h>

distance_to_line

Return the distance from a point to a line.

intersects

Return true if two line segments intersect.

collinear

Return true if two line segments are collinear. (All points are on the same line.)

get_intersection

Return the intersection point of two lines.

point_right_of_line

Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B

midpoint

Return the midpoint of the line from point A to point B.

normal

Return the normal vector of the line from point A to point B.

Detailed description:

!group=Core/Math! !header=core.h!


Questions or comments, write to the
ClanLib mailing list.