Skip to content

Releases: tguichaoua/angulus

0.6.0

18 Dec 16:09
46a8d5a
Compare
Choose a tag to compare

What's Changed

💥 Breaking Changes

✨ New Features

Other Changes

Full Changelog: v0.5.0...v0.6.0

0.5.0

15 Apr 12:42
dd97456
Compare
Choose a tag to compare

What's Changed

  • no_std support in #33

Full Changelog: v0.4.1...v0.5.0

0.4.1

11 Feb 07:33
ccfff37
Compare
Choose a tag to compare

Fixes

  • Don't export the internal macros.

0.4.0

11 Feb 07:07
59b16f4
Compare
Choose a tag to compare

Features

  • Support for the rand crate.
  • Implement PartialOrd for AngleUnbounded.
  • Implement AddAssign, SubAssign, MulAssign and DivAssign for Angle and AngleUnbounded.
  • Foward operator on reference for Angle and AngleUnbounded (e.g. T op &U, &T op U, &T op &U, etc...).
  • Implement Sum for Angle and AngleUnbounded.
  • Add a prelude module.
  • Add Angle<f32>Angle<f64> and AngleUnbounded<f32>AngleUnbounded<f64> convertion.
  • Add Angle::is_nan() method.

Fixes

  • serde dependency is now no-default-features.
  • Angle::from_turns will no more returning NaN when using big values.

Documentation

  • Move feature specific documentation in their own module for clarity.
  • Add a note about Angle(NaN).

v0.3.0...v0.4.0

0.3.0

02 Feb 19:28
a5af3d5
Compare
Choose a tag to compare

Breaking Changes

  • Rename UnboundedAngle into AngleUnbounded.
  • Rename Num into Float, also Float is now sealed.
  • Trait Float is no more exported in lib : angulus::Floatangulus::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 and from_value methods on unit wrappers.
  • Add type aliases : Angle32, Angle64, AngleUnbounded32 and AngleUnbounded64.

Fixes

  • Angle's range is now strictly (-pi, pi]

v0.2.0...v0.3.0

0.2.0

02 Sep 18:25
d8e75e2
Compare
Choose a tag to compare

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.

v0.1.0...v0.2.0

0.1.0 - First Release

30 Aug 16:07
Compare
Choose a tag to compare

First release.