Crate nbez

Source
Expand description

A crate that provides generic bezier curves of varying order and dimensionality, including numerous stack-allocated curves and an (admittedly not entirely functional) n-order curve.

Structs§

  • Order 1 bezier curve
  • Order 2 bezier curve
  • Order 3 bezier curve
  • Order 4 bezier curve
  • Order 5 bezier curve
  • Order 6 bezier curve
  • A chain of bezier curves, with the last point of each curve being the first point of the next.
  • Iterator over bezier curve chains
  • An iterator over a bezier curve’s interpolated points
  • An n-order bezier curve. The from_slice, split, and split_unbounded functions currently do not work.
  • 2-dimensional point
  • 3-dimensional point
  • 4-dimensional point
  • 2-dimensional vector
  • 3-dimensional vector
  • 4-dimensional vector

Traits§

  • Bezier curve trait
  • A helper trait to simplify float generics
  • Trait to mark curves that have order known at compiletime.
  • A trait that specifies the necessary operators needed to have a point which nbez can properly perform operations on
  • Specifies the needed traits to have a nbez point, as well as the vector type that this corresponds to
  • A vector. Gets associated with any number of points