comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: if statement
Date: 21 Mar 2002 06:25:27 +0000
Date: 2002-03-21T06:25:27+00:00	[thread overview]
Message-ID: <x7v7ko6cu94.fsf@smaug.pushface.org> (raw)
In-Reply-To: mailman.1016604482.29531.comp.lang.ada@ada.eu.org

Christoph Grein <christoph.grein@eurocopter.com> writes:

>   arctan (X => X, Y => Y)
> 
> is a completely different beast. The definition has parameter Y
> first, X second (for good mathematical reasons),

And if you actually want

  arctan (X => Y, Y => X)

because you're measuring angles clockwise from North ... actually I
guess a renaming would be good;

  function Compass_Bearing (Eastings, Northings : Float'base) return Float'Base)
  renames Arctan (X => Northings, Y => Eastings);

(uncompiled)

-- 
Simon Wright                       Work Email: simon.j.wright@amsjv.com
Alenia Marconi Systems                        Voice: +44(0)23-9270-1778
Integrated Systems Division                     FAX: +44(0)23-9270-1800



  reply	other threads:[~2002-03-21  6:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-20  6:05 if statement Christoph Grein
2002-03-21  6:25 ` Simon Wright [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-03-17 13:46 Karl-Johan Karlsson
2002-03-17 16:58 ` Steve Doiel
2002-03-19 19:23 ` Pheet
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox