Structs§
- Logic
Unit - The tag for logic unit system to prevent mixing values from different system.
- Physic
Unit - The tag for device unit system to prevent mixing values from different system.
Constants§
Traits§
Functions§
- rect
- Shorthand for
Rect::new(Point2D::new(x, y), Size2D::new(w, h)). - rect_
corners - Return the four corners of a rectangle: [left-top, right-top, right-bottom, left-bottom]
- transform_
to_ device_ rect - Apply the transform to the rect and return the new rect as device unit.