Deprecated: Assigning the return value of new by reference is deprecated in /home2/vgps01/public_html/j2megps.com/blog/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home2/vgps01/public_html/j2megps.com/blog/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home2/vgps01/public_html/j2megps.com/blog/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home2/vgps01/public_html/j2megps.com/blog/wp-settings.php on line 530
J2ME GPS | Tag Archive | point

Tag Archive | "point"

Data structure design for vector map

Monday, March 16, 2009

1 Comment

Vector map’s basic objects: Vector map usually consists of 2 types of objects: render objects and routing objects. Render objects: Countries Cities/Provinces Points Polylines Polygons Here is the data structure model that you can use for your mobile map application: Data structure for Country: String name; int x; (Longitude (32bit)) int y; (Latitude (32bit)) short numPoint; (16bit) – follow by array of x and y different to define boundaries [...]

Continue reading...

Distance Between Point and Line

Wednesday, March 11, 2009

0 Comments

This note describes the technique and gives the solution to finding the shortest distance from a point to a line or line segment. The equation of a line defined through two points P1 (x1,y1) and P2 (x2,y2) is P = P1 + u (P2 - P1) The point P3 (x3,y3) is closest to the line at the [...]

Continue reading...