struct

PF2d::Bezier::Curve(T)

Inherits Struct < Value < Object

Constructors

Instance methods

at(t : Float64) : Vec2(T)

Get the point at percentage t < 0 < 1 of the curve

Source
control_points
Source
extrema

Get the points at the extrema of this curve

Source
horizontal_intersects(y, &)

The t value at which a line at y intercepts the curve

Source
initialize
Source
length(steps : UInt32 = 10)

Get the length of the curve by calculating the length of line segments Increase steps for accuracy

Source
normal(t : Float64)

Get the normal to a point at t < 0 < 1 on the spline

Source
points
Source
rect
Source
tangent(t : Float64)

Get the tangent to a point at t < 0 < 1 on the spline

Source
x_values
Source
y_values
Source