Re: Documentation of gama
Greg Troxel <[email protected]> Wed, 01 Nov 2023 12:56:47 -0400
| Newsgroups | gmane.comp.gnu.gama.bugs |
|---|---|
| Message-ID | <[email protected]> |
Udo Freier <[email protected]> writes: > Moin, > > in the documentation under 2.1 Angular units I found: 1 cc = 10 mgon. > But I think 10 cc = 1 mgon! > > regards > Udo Freier Note that I am in .us where we don't use gons -- practice is still degrees/minutes/seconds even if distances are in meters -- so I don't trust myself to get it right. in doc/gama-local-input.texi: Another angular unit commonly used in surveying is the milligon (mgon), 1 mgon = 1 gon/1000 (similarly as 1 mm = 1 m/1000) and 10 cc = 1 mgon. and that looks exactly right to me. Are you looking at other than git master? I looked in the sources for "mgon" and found in lib/krumm/common.cpp: std::string gon2cc(std::string g) { return std::to_string(std::stod(g) * 1e4); } std::string mgon2cc(std::string g) { return std::to_string(std::stod(g) * 1e3); } and this does not make sense to me. A mgon is 10^-3 gon, so converting to ccgon should be *10, not *1000.