Module types

Module types 

Source
Expand description

Contains type aliases used in this library

Re-exports§

pub use crate::math::Matrix2d;
pub use crate::math::Scalar;
pub use crate::math::Vec2d;

Type Aliases§

Area
The type used for area.
Color
[red, green, blue, alpha]
ColorComponent
The type used for color component.
FontSize
The type used for font size.
Line
[x1, y1, x2, y2]
Polygon
[p0, p1, …]
Polygons
A slice of polygons.
Radius
The type used for radius.
Ray
[x, y, dir_x, dir_y]
Rectangle
Rectangle dimensions: [x, y, w, h]
Resolution
The type used for resolution.
SourceRectangle
[x, y, w, h]
Triangle
[x1, y1, x2, y2, x3, y3]
Width
The type used for width.