Boost logo

Boost Users :

Subject: [Boost-users] [units] Convert from Degree Minutes to Degrees
From: Ryan (boost_at_[hidden])
Date: 2013-09-18 18:56:02


Angles have their own system that define both radians and degrees. I would
like to create the necessary type for minutes (this is 1/60 of a degree).
 My first thought was to create a scale unit with degrees as the base type.
 I couldn't determine how to enter the scale of 1/60. The other option is
to define a new base unit. I would think using the degrees base unit would
be a good reference, but it uses an "INTERNAL ONLY" macro call
"BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS". What should I use to
create a unit type that will convert from degree minutes to just degrees?

Ryan



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net