Declaration ​
pascal
function GetPoints(const Line: TArrayOfFloatPoint; AtEnd: Boolean): TArrayOfFloatPoint;Parameters ​
| Parameter | Type | Description |
|---|---|---|
Line | TArrayOfFloatPoint | Array of points defining the polyline path. Must contain at least two points. |
AtEnd | Boolean | True to attach the arrowhead at the end point of the polyline; False to attach at the starting point. |
Returns ​
| Type | Description |
|---|---|
TArrayOfFloatPoint | An array of 2D floating-point coordinates outlining the arrowhead shape. |
Description ​
GetPoints computes the vector direction of the line segment at either the start (AtEnd = False) or end (AtEnd = True) of Line, calculates the tip and base coordinates based on Size, and returns the full polygon contour for the arrowhead by invoking GetPointsInternal.
An exception is raised if Line contains fewer than two points.