summaryrefslogtreecommitdiff
path: root/docs/design.org
diff options
context:
space:
mode:
Diffstat (limited to 'docs/design.org')
-rw-r--r--docs/design.org5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/design.org b/docs/design.org
index 65ee651..3764adb 100644
--- a/docs/design.org
+++ b/docs/design.org
@@ -1,6 +1,6 @@
#+TITLE: 7Units Design Document
-#+SUBTITLE: For version 0.5.0
-#+DATE: 2024 March 23
+#+SUBTITLE: For version 1.0.0
+#+DATE: 2025 June 1
#+LaTeX_HEADER: \usepackage[a4paper, lmargin=25mm, rmargin=25mm, tmargin=25mm, bmargin=25mm]{geometry}
#+LaTeX_HEADER: \usepackage{xurl}
#+LaTeX: \newpage
@@ -66,7 +66,6 @@
- Note that any operations will return a unit without name(s) or a symbol. All unit classes have a ~withName~ method that returns a copy of them with different names and/or a different symbol (all of this info is contained in the ~NameSymbol~ class)
There are a few more classes which play small roles in the unit system:
- - Unitlike :: A class that is like a unit, but its "value" can be any class. The only use of this class right now is to implement ~MultiUnit~, a combination of units (like "foot + inch", commonly used in North America for measuring height); its "value" is a list of numbers.
- FunctionalUnit :: A convenience class that implements the two conversion functions of ~Unit~ using ~DoubleUnaryOperator~ instances. This is used internally to implement degrees Celsius and Fahrenheit. There is also a version of this for ~Unitlike~, ~FunctionalUnitlike~.
- UnitValue :: A value expressed as a certain unit (such as "7 inches"). This class is used by the simple unit converter to represent units. You can convert them between units. There are also versions of this for ~LinearUnit~ and ~Unitlike~.
- Metric :: A static utility class with instances of all of the SI named units, the 9 base dimensions, SI prefixes, some common prefixed units like the kilometre, and a few non-SI units used commonly with them.