bug-gama
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Documentation of gama


From: Greg Troxel
Subject: Re: Documentation of gama
Date: Wed, 01 Nov 2023 12:56:47 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (berkeley-unix)

Udo Freier <udo.freier@hcu-hamburg.de> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]