These functions construct various sorts of caps. They construct a matrix
that can be supplied as the shape argument in gizmo_barcap().
Usage
cap_triangle()
cap_round(n = 100)
cap_arch(n = 100)
cap_ogee(n = 100)
cap_none()
Value
A <matrix[n, 2]> with coordinates for points on the brackets.
Arguments
n
An <integer[n]> number of points to use for the cap.
Functions
cap_triangle(): An equilateral triangle with n = 3 points.
cap_round(): A semicircle.
cap_arch(): Two circular arcs forming an equilateral Gothic arch.
cap_ogee(): Four circular arcs forming an 'ogee' arch.
cap_none(): No cap.
Details
When designing custom cap shapes, the expectation is that the first point
starts at the (0, 0) coordinate and the last point ends at the (0, 1)
coordinate. The first column follows the orthogonal direction of the bar
whereas the second column follows the direction of the bar.