arrow_head_points: Calculate Arrow Head Points

View source: R/splot-arrows.R

arrow_head_pointsR Documentation

Calculate Arrow Head Points

Description

Returns the vertices for an arrow head polygon without drawing.

Usage

arrow_head_points(x, y, angle, size, arrow_angle = pi/6)

Arguments

x

Arrow tip x coordinate.

y

Arrow tip y coordinate.

angle

Angle of incoming edge (radians).

size

Arrow size.

arrow_angle

Arrow head angle in radians. Default pi/6 (30 degrees).

Value

List with x, y vectors and midpoint coordinates.


cograph documentation built on April 1, 2026, 1:07 a.m.