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.
wgpuhas been updated to24.0.1.
- Functions to get the four corners of a
Rect.
wgpuhas been updated to23.0.0.
- Trait
StdNumOpsdefines saturating math operations. All unit types,Size, andPointimplement this trait. Rect::saturating_extentsreturns the extents of a rectangle using saturating math.
Durationnow implementsRanged.
Fraction::newnow contains adebug_assert!ensuring the denominator is non-zero.
Rectnow implementsFloatConversionwhen its unit type implements it.
wgpuhas been updated tov22.0.0.
Px,UPx, andLpno longer directly have an associated constantZERO. This constant is still available via theZerotrait.- This crate's
wgpuversion is now0.20.0. - This crate's
winitversion is now0.30.0.
SizeandPointnow implement both to/from winit's PhysicalSize/PhysicalPosition for bothi32/Pxandu32/UPx.
Px,UPx, andLpnow can be multiplied byFraction.Point::rotate_byandPoint::rotate_aroundallow 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
Vectorliketypes:Vector::from_x(),Vector::from_y()Point::from_x(),Point::from_y()Size::from_width(),Size::from_height()
From<Size>implementations forRectandSizedRect.
- Initial release.