All Classes |Grouped Classes |Index

Class CL_LineMath

Math operations on 2D lines. More...

Derived from:

None

Derived by:

None

Group:

Math (Core)

#include <ClanLib/core.h>

Class Members:

closest_point

Return the Point on the line from A to B closest to point P.

closest_point_relative

Return the relative position (0-1) of the point R on the line from A to B closest to point P.

midpoint

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

point_right_of_line

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

Detailed description:

Obsolete - Use CL_Line, CL_LineRay, CL_LineSegment