Crate irox_units

source ·
Expand description

The little Units Library that could

§Module Structure:

  • bounds - Bounding Boxes and Range Checks
  • shapes - Ways to define and describe shapes
    • shapes::circular - CircularAspect enum and CircularDimension struct, describes a circle by radius or diameter with appropriate length units.
    • shapes::elliptical - Ellipse struct, describes an ellipse using two CircularDimension axes and an optional CompassDirection orientation of the first axis
  • units - Physical Quantities
    • units::angle - Angle Types, Angle, AngleUnits for Degrees and Radians
    • units::compass - Compass Types, Compass, and the absolute types: Heading, Track, Bearing, Course, Azimuth, CompassOffest, and the relative type RelativeBearing
    • units::datasize - Computer Data Sizes, DataSize representing Bytes, Kilobytes, etc
    • units::length - The SI Length quantity, representing Meters, Feet, etc
    • units::speed - The SI Speed quantity, representing MetersPerSecond, Knots, etc
    • units::temperature - The SI Temperature quantity, representing Celsius, Kelvin, etc

Modules§

Macros§

  • Matches (struct, units, default) to make a new basic struct