Skip to content

55c5a2d5 9524 4a52 87ae 1c9cf1512e46

Kim Hugener-Ohlsen edited this page Apr 30, 2016 · 1 revision

Welcome

Sundew.Quantities is a portable class library, which introduces types for various quanties.

The goal of this is to increase safety of working with physical units and make it easier by providing functionality for common operations, such as unit conversion.

Features:

 

  • Cross platform - Compatible with Portable Class Library Profile 259 - See Getting started.
  • Type safety - Quantities have their own type: Acceleration, Volume, etc. - See Type satefy.
  • Operator overloading - Support mathematical formulas rather than calling methods - See Operations.
  • Unit conversion - Provide conversion between different units of the same quantity - See Unit conversion.
  • Comparable - Values of the same quantities can be compared to each other, even if the unit differs - See Comparison.
  • Equatable - Values of the same quantities can be checked for equality, even if the unit differs - See Equality.
  • Immutable - Each operation creates a new quantity.
  • Extensible - Add additional units - See Extensibility.
  • Unit reduction - During operations units are automatically reduced.
  • Formattable - Allows implementation of custom unit formatters - See Implementing a formatter.
  • Parsing units from strings - Support for various notations: km/h/s, m³ (m^3), °C, Ω, etc.
  • Serialization - Serialize to JSON and other formats - See Serialzation.
 
Clone this wiki locally