Crate aspect360

source ·

Structs§

  • Defines a target aspect with its orb (± tolerance). Used with the find_aspect() method defined in Aspect360 All aspects are symmetrical e.g. 120º will also match 240º or -120º
  • Defines an aspect result All angle pairs have an aspect, but only some match the target within the specified orb (± tolerance)
  • Ring360 is a tuple struct encapsulating an f64

Traits§

  • Provides method to calculate aspect matches from f64 values cast to Ring360 with a target aspect and orb (± tolerance)
  • trait to convert normal float values to a Ring360 value and to apply a simple mod_360() returning a 64-bit float