GEOdistanceLineCircle |
Top Previous Next |
Distance regulation of line and circle. With this routine the distance is determined between a line and a circle. If the line the circle cuts becomes 0.0 zurückgeliefert. The distance is determined, while the plumb line on the line is liked by the centre of a circle. If the plumb line cannot be liked, one the terminator point of the line which lies most near the circle is taken. The radius has already departed from the distance. Parametre sx (const stands in) [IN] sy (const stands in) [IN] Beginning co-ordinates of the line. ex (const stands in) [IN] ey (const stands in) [IN] Final co-ordinates of the line. cx (const stands in) [IN] cy (const stands in) [IN] Centre of a circle. r (const stands in) [IN] Radius of the circle. Result (STAND-IN) [OUT] As a result the distance is delivered by the line to the circle. If the both cut themselves, becomes 0.0 zurückgeliefert. Declaration #include "basic.h"
STAND-IN DLLENTRY GEOdistanceLineCircle ( const stands in sx, const stands in sy, const stands in ex, const stands in ey, const stands in cx, const stands in cy, const stands in r ); Related functions
|