CODLineComponent::FindPercentageAlong

Finds the point at a certain percentage along the line. The calculation starts at the source point and moves towards the end point. So, 0% would be the source point and 100% would be the target point.

Defined in: OdLineComp.cpp

Syntax

CPoint CODLineComponent::FindPercentageAlong(int nPercent)

CPoint CODLineComponent::FindPercentageAlong(int nPercent, int& nVertex1, int& nVertex2)

Return Value

The point along the line in world coordinates.

Parameters

nPercent

The percent to travel along the line.

nVertex1

Return value for the first vertex of the segment on which the return point was found.

nVertex2

Return value for the second vertex of the segment on which the return point was found.