Repository navigation
Releases: tguichaoua/angulus
Releases · tguichaoua/angulus
Release list
0.6.0
What's Changed
💥 Breaking Changes
- Remove the
preludemodule by @tguichaoua in #45 - Remove
Float::TAU_RAD_IN_TURNSby @tguichaoua in #46
✨ New Features
- Mark some methods with
#[must_use]by @tguichaoua in #48
Other Changes
- doc: fix typo and rephrase most parts by @tguichaoua in #49
Full Changelog: v0.5.0...v0.6.0
0.5.0
0.4.1
0.4.0
Features
- Support for the rand crate.
- Implement
PartialOrdforAngleUnbounded. - Implement
AddAssign,SubAssign,MulAssignandDivAssignforAngleandAngleUnbounded. - Foward operator on reference for
AngleandAngleUnbounded(e.g.T op &U,&T op U,&T op &U, etc...). - Implement
SumforAngleandAngleUnbounded. - Add a prelude module.
- Add
Angle<f32>↔Angle<f64>andAngleUnbounded<f32>↔AngleUnbounded<f64>convertion. - Add
Angle::is_nan()method.
Fixes
- serde dependency is now
no-default-features. Angle::from_turnswill no more returningNaNwhen using big values.
Documentation
- Move feature specific documentation in their own module for clarity.
- Add a note about
Angle(NaN).
0.3.0
Breaking Changes
- Rename
UnboundedAngleintoAngleUnbounded. - Rename
NumintoFloat, alsoFloatis now sealed. - Trait
Floatis no more exported inlib:angulus::Float→angulus::float::Float - Set MSRV to
1.61
Features
- Add support for gradians.
- Unit wrappers are now
Debug,Copy,Cloneand#[repr(transparent)]. - Add
to_valueandfrom_valuemethods on unit wrappers. - Add type aliases :
Angle32,Angle64,AngleUnbounded32andAngleUnbounded64.
Fixes
Angle's range is now strictly(-pi, pi]
0.2.0
Angle are now unit-agnostic (even if they store the value in radians).
The canonical angle is now the default angle (formerly MainAngle) and the non canonical angle is UnboundedAngle (formerly Angle).
Display and (de)serialization of angle for a specific unit is now done via unit wrapper.
Breaking changes
- Remove the unit system from angle types.
- Rename
MainAngle-->Angle. - Rename
Angle-->UnboundedAngle. - Remove operations (add and sub) between the two kind of angle.