Releases: tguichaoua/angulus
Releases · tguichaoua/angulus
0.6.0
What's Changed
💥 Breaking Changes
- Remove the
prelude
module by @tguichaoua in #45 - Remove
Float::TAU_RAD_IN_TURNS
by @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
Fixes
- Don't export the internal macros.
0.4.0
Features
- Support for the rand crate.
- Implement
PartialOrd
forAngleUnbounded
. - Implement
AddAssign
,SubAssign
,MulAssign
andDivAssign
forAngle
andAngleUnbounded
. - Foward operator on reference for
Angle
andAngleUnbounded
(e.g.T op &U
,&T op U
,&T op &U
, etc...). - Implement
Sum
forAngle
andAngleUnbounded
. - 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_turns
will no more returningNaN
when 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
UnboundedAngle
intoAngleUnbounded
. - Rename
Num
intoFloat
, alsoFloat
is now sealed. - Trait
Float
is 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
,Clone
and#[repr(transparent)]
. - Add
to_value
andfrom_value
methods on unit wrappers. - Add type aliases :
Angle32
,Angle64
,AngleUnbounded32
andAngleUnbounded64
.
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.
0.1.0 - First Release
First release.