Expand description
Structs§
- Line
- A line primitive which implements
CanDraw
, and so can be drawn to Canvases - Pixel
- A singular point with a
Vec2D
position andColChar
- Polygon
- A polygon primitive which implements
CanDraw
, and so can be drawn to Canvases - Rect
- A rectangle primitive which implements
CanDraw
, and so can be drawn to Canvases - Triangle
- A triangle primitive which implements
CanDraw
, and so can be drawn to Canvases
Functions§
- interpolate
- Draw a pseudo-line between the independent and dependent positions. Returns rounded values as
i64
s. If you don’t want the values rounded, useinterpolate_floating
- interpolate_
floating - Draw a pseudo-line between the independent and dependent positions
- triangulate
- Split a polygon up into triangles using the ear cutting algorithm. Returns a vec of coordinate sets for each triangle