A small math library specialized for 2d screen graphics.
To enable serialization of most types, enable the
serde feature flag.
A rectangle that uses two
A value in a specific unit.
A unit representing physical pixels.
A location represented by an x and y value.
A unit representing DPI-adjusted resolution configured on the system.
Allows converting between
A unit representing virtual pixels that are scaled on top of the DPI
adjustment done for the
A measurement of space using width and height.
A 2d measurement using x and y values.
An angle of rotation.
Allows comparing floating point numbers with approximation.
Defines the smallest integer equal or greater than the original value.
Methods for converting between display scales.
Defines the biggest integer equal or lower than the original value.
Returns a one value.
Functionalitiy that all rectangle types implement
Defines the nearest integer value to the original value.
Methods that enable converting between 2d types that have two components.
Returns a zero value.