News for hackers. Stuff that matters.
Re:Please put units in names by wffurr on Monday March 21, 2022 @07:28AM (#30752760)
Also not OP, but I work on graphics software and we frequently deal with different units and use strict naming systems and occasionally types to differentiate them.

Even more fun is that sometimes units alone aren't sufficient. We need to know which coordinate system the units are being used in: screen, world, document, object-local, etc. It's amazing how many different coordinate systems you can come up with...

Or which time stream a timestamp comes from, input times, draw times (both of which are usually uptime values from CLOCK_MONOTONIC) or wall times.

Re:Please put units in names by ReleaseCandidat on Monday March 21, 2022 @07:39AM (#30752867)
As a bonus, coordinate systems can be left-handed or right-handed, and the axes point in different directions (relevant when loading models for example).