All Classes |Grouped Classes |Index

Function closest_point_relative

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

	static float CL_LineMath::closest_point_relative(
		const CL_Pointf & P,
		const CL_Pointf & A,
		const CL_Pointf & B);