Crate ribir_geom

Crate ribir_geom 

Source

Structs§

LogicUnit
The tag for logic unit system to prevent mixing values from different system.
PhysicUnit
The tag for device unit system to prevent mixing values from different system.

Constants§

INFINITY_SIZE
ZERO_SIZE

Traits§

Zero

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.

Type Aliases§

Angle
Box2D
DevicePoint
DeviceRect
DeviceSize
DeviceVector
Point
Rect
Size
Transform
Vector