CODRgn::Midpoint

inline void CODRgn::Midpoint(float x0, float y0, float x1, float y1, float& midX, float& midY)

Finds the midpoint of a line.

Defined in: OdRgn.h

Return Value

void

Parameters

x0

The x coordinate of the start of the line.

y0

The y coordinate of the start of the line.

x1

The x coordinate of the end of the line.

y1

The y coordinate of the end of the line.

midX

A reference that is set x coordinate of the midpoint.

midY

A reference that is set y coordinate of the midpoint.