= "0.2"
flo_curves
flo_curves
is a library providing routines for manipulating various types of curve, particularly Bezier curves. It provides
a grab-bag of algorithms, from the basis functions for generating points on a curve to collisions, fitting to points and even
path arithmetic. It is built around traits, which makes it easy to use the provided algorithms with any data structure, though
some defaults are provided.
flo_curves
is designed as a support library for flowbetween
, an animation tool I'm working on, but is also designed to work
stand-alone.
Examples
Creating a curve:
use *;
use bezier;
let curve = from_points;
Finding a point on a curve:
use bezier;
let pos = curve.point_at_pos;
Intersections:
use bezier;
for in curve_intersects_curve_clip
Creating a path:
use bezier;
use *;
let rectangle1 = start
.line_to
.line_to
.line_to
.line_to
.build;
Path artihmetic:
use *;
let rectangle_with_hole =