All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
wgpu
has been updated to23.0.0
.
- Trait
StdNumOps
defines saturating math operations. All unit types,Size
, andPoint
implement this trait. Rect::saturating_extents
returns the extents of a rectangle using saturating math.
Duration
now implementsRanged
.
Fraction::new
now contains adebug_assert!
ensuring the denominator is non-zero.
Rect
now implementsFloatConversion
when its unit type implements it.
wgpu
has been updated tov22.0.0
.
Px
,UPx
, andLp
no longer directly have an associated constantZERO
. This constant is still available via theZero
trait.- This crate's
wgpu
version is now0.20.0
. - This crate's
winit
version is now0.30.0
.
Size
andPoint
now implement both to/from winit's PhysicalSize/PhysicalPosition for bothi32
/Px
andu32
/UPx
.
Px
,UPx
, andLp
now can be multiplied byFraction
.Point::rotate_by
andPoint::rotate_around
allow rotating points by anAngle
.
This version is a complete rewrite to be primarily integer driven. No attempt at keeping a compatible API has been made.
From<(T,T)>
forSize
,Point
, andVector
.
- "Partial" constructors for all
Vectorlike
types:Vector::from_x()
,Vector::from_y()
Point::from_x()
,Point::from_y()
Size::from_width()
,Size::from_height()
From<Size>
implementations forRect
andSizedRect
.
- Initial release.