Skip to content

Initial Cut of Unit-Aware Value System ( Length ) #5

Open
@joeyame

Description

@joeyame

Part of making a good, easy to use sim framework mandates a physical value-tracking system that ensures unit-safe operations.

Such a system should have 3 properties (for now just assume length):

  1. Lengths can be added, subtracted from each other.
  2. Lengths can be scaled by a given unitless factor.
  3. Trying to multiply lengths together causes an error ( no Area types exist yet )
  4. We can pull any length unit out of a Length object and it will automatically convert as needed (1m.get(feet) == 3.28084)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Disaster AversionTasks that help mitigate future disasters

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions