abstract struct PF2d::Bezier::Curve(T)
- PF2d::Bezier::Curve(T)
- Struct
- Value
- Object
Direct Known Subclasses
Defined in:
pf2d/bezier.crConstructors
Instance Method Summary
-
#at(t : Float64) : Vec2(T)
Get the point at percentage t < 0 < 1 of the curve
- #control_points : Tuple(Vec2(T), Vec2(T))
-
#extrema(&)
Get the points at the extrema of this curve
-
#horizontal_intersects(y, &)
The points at which a line at y intercepts the curve
- #initialize
-
#length(steps : UInt32 = 10)
Get the length of the curve by calculating the length of line segments Increase steps for accuracy
-
#normal(t : Float64)
Get the normal to a point at t < 0 < 1 on the spline
- #points
- #rect
-
#tangent(t : Float64)
Get the tangent to a point at t < 0 < 1 on the spline
- #x_values
- #y_values
Constructor Detail
Instance Method Detail
def length(steps : UInt32 = 10)
#
Get the length of the curve by calculating the length of line segments Increase steps for accuracy