Help with DynamicMathLib
marcla
Posts: 19
Can somebody help me with DynamicMathLib.
I am trying to calculate the bearing betven to Lan, Longs.
I tested
CorrectedCoordsToDegs(01332.656, 5717.4828, 01332.656, 5717.3049) )
(The tagret position lies stright·under the other...)
But i returns:
1127481344
That isn't i degress? (Should be 180deg?)
I also tried CorrectedNavCalculation(lon1, lat1, lon2, lat2, VectorMagAddress, VectorAngleAddress)
but witch "data"·shoud·I give·VectorMagAddress, VectorAngleAddress.
I am trying to calculate the bearing betven to Lan, Longs.
I tested
CorrectedCoordsToDegs(01332.656, 5717.4828, 01332.656, 5717.3049) )
(The tagret position lies stright·under the other...)
But i returns:
1127481344
That isn't i degress? (Should be 180deg?)
I also tried CorrectedNavCalculation(lon1, lat1, lon2, lat2, VectorMagAddress, VectorAngleAddress)
but witch "data"·shoud·I give·VectorMagAddress, VectorAngleAddress.
Comments
An address to a LONG where the result has be written to
---
Edit: But (F)CoordsTo Degs should work as well.. Please read through the library and understand what is going on there.. it's just simple trigonometry... The input is x and y however, not lat and long
Post Edited (deSilva) : 12/23/2007 2:58:24 PM GMT