Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


Nav library


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-04-2010, 06:22 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 604
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Nav library

Nav is a library with some algorithms for use in a navigation application.

The names of the main methods are:
  • GeoDistanceBearing
  • GeoDistance
  • UTMDistanceBearing
  • FlatArea
  • FlatArea2
  • SphericalArea
  • SphericalArea2
  • GeoRouteLength
  • GeoRouteLength2
  • UTMRouteLength
  • UTMRouteLength2

Tha attached file includes Help, example program and the cs file.

Edit: version 1.1 includes the function Atan2 which helps to define azimuth (the same as Atan but for the whole circle).

Edit: version 1.2 includes Map method for getting the x-y coordinates for image map, based on four points data. enables the use of large maps which are not rectangular , or even rotated.
Attached Images
File Type: jpg kineret2.jpg (73.2 KB, 63 views)
Attached Files
File Type: zip Nav1.2.zip (82.1 KB, 12 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 07-09-2010 at 07:03 AM.
Reply With Quote
  #2 (permalink)  
Old 03-04-2010, 08:25 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 604
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Updated to ver. 1.1
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #3 (permalink)  
Old 03-06-2010, 06:10 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,831
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks. I'm sure that it will be extremely useful.
__________________
Basic4ppc reference list
Reply With Quote
  #4 (permalink)  
Old 04-03-2010, 08:02 AM
Newbie
 
Join Date: Jan 2010
Posts: 5
Default

Thanks for the lib,

looks vy good. I'm new in this forum and to Basic4ppc. Got my licence a few days ago.
Back to Basic after more than 15 years of teaching C++.
Reply With Quote
  #5 (permalink)  
Old 07-08-2010, 12:30 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 604
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

The library is updated to ver 1.2, with the addition of Map method. It enables the use of large maps in navigation programs.
The map is calibrated by dual (lat-long + x-y ) coordinates of four points, and returns the x - y of a input lat-long, the local rotation from north, and the horizontal and vertical ratios of the map (map/real).

I'll be glad to further explain if this + the help isn't clear enough.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 07-08-2010 at 12:34 PM.
Reply With Quote
  #6 (permalink)  
Old 07-09-2010, 07:08 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 604
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Map calibration program

Attached to the first post - a desktop program to help in performing the four-point calibration of a map, for use with Map method.
Operation is simple:
1.prepare the map as a photo
2.run the program
3.load the map
4.go to "map" form and mark the four points, moving by mouse clicks and marking by the buttons there.
5.return to "input" form and fill the lat-long coordinates for the points (Google Earth may help here...)
6.check with another point coordinates to see if it appears in the map form in the center.
7.save a text file for use in the navigation program.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 07-09-2010 at 07:11 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Merging Outlook library and Phone library Erel Official Updates 4 01-01-2010 09:18 AM
Door library (Beta) - Special library Erel Official Updates 52 12-08-2008 05:03 PM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 07:46 PM


All times are GMT. The time now is 11:49 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0