Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_ArrowHeads🞂TArrowHeadAbstract🞂GetPointsMethodPublic

TArrowHeadAbstract.GetPoints

Calculates the polygon vertices defining the arrowhead for a given polyline segment.

Declaration ​

pascal
function GetPoints(const Line: TArrayOfFloatPoint; AtEnd: Boolean): TArrayOfFloatPoint;

Parameters ​

ParameterTypeDescription
LineTArrayOfFloatPointArray of points defining the polyline path. Must contain at least two points.
AtEndBooleanTrue to attach the arrowhead at the end point of the polyline; False to attach at the starting point.

Returns ​

TypeDescription
TArrayOfFloatPointAn 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.