Expand description
Useful algorithms and functionality for manipulating graphical objects.
Structs§
- Approximated
Arc - An iterator over the points in an arc approximation.
Enums§
- Closest
- An enum containing the different possible solutions for
ClosestPoint::closest_point()
.
Traits§
- Affine
Transformable - Something which can be transformed using an arbitrary
Transform2D
matrix and still be semantically valid. - Approximate
- Approximate a shape with a bunch of
Point
s. - Bounded
- Calculate an axis-aligned bounding box around the item.
- Closest
Point - Find the location on an object which is closest to a target point.
- Length
- Something which has a finite length.
- Scale
- Something who’s dimensions can be scaled uniformly.
- Scale
NonUniform - Something who’s dimensions can be scaled independently (the non-uniform bit) in the x and y directions.
- Translate
- Something which can be moved around “rigidly” in Drawing Space.
Functions§
- simplify
- Decimate a curve composed of line segments to a “simpler” curve with fewer points.