CODGlobal::ClosestPointOnLine

CPoint CODGlobal::ClosestPointOnLine(const CPoint& pt0, const CPoint& pt1, const CPoint& ptFind)

Given a point in space, this method finds the closest point to it on a line.

Defined in: OdGlobal.cpp

Return Value

The point on the line which is closest to the point in space.

Parameters

pt0

The start point of the line.

pt1

The end point of the line.

ptFind

The point in space we are trying to get close to.