CODRgn::CanApproximate

BOOLCODRgn::CanApproximate(floatx0, floaty0, floatx1, floaty1, floatx2, floaty2)

Checks to see if a curve can be approximated with a line segment.

Defined in: OdRgn.cpp

Return Value

TRUE if it can be approximated.

Parameters

x0

The x coordinate of the start point of the proposed line.

y0

The y coordinate of the start point of the proposed line.

x1

The x coordinate of the midpoint along the curve from the start point to the endpoint.

y1

The y coordinate of the midpoint along the curve from the start point to the endpoint.

x2

The x coordinate of the end point of the proposed line.

y2

The y coordinate of the end point of the proposed line.