Skip to contents

Given a sequence of anchor points, computes control handles that create smooth (C1-continuous) cubic Bezier curves connecting them.

Usage

get_smooth_handle_points(anchors, closed = FALSE)

Arguments

anchors

Matrix of anchor points (N x 3), N >= 2

closed

Whether the path is closed (connects last to first)

Value

Matrix of control points in 4-per-curve format