I'm trying to come up with an iterative function that generates xyz coordinates for a hexagonal grid. Maths has never been easy for me (I'm just not very clever!) and this problem has me stumped. With a starting hex position (say 0,0,0 for simplicty) I want to calculate the coordinates for each successive "ring" of hexagons, as illustrat...
Hi
I get some GPS coordinates from Google Maps and I need to find the distance between them
using Objective C. I have implemented the formula but I get results that are way to big.
I have tested the values from Google Maps by passing them back into Google Earth and a Geocoding service on the internet and everything checks out. Im now b...
I'm tired of thinking how the hell my coodinates are working at each case.
I heard that I could flip the Y-axis by this code:
glScalef(1, -1, 1);
But should I? Doesnt this break some other external functions and lighting etc?
...
Hello,
This is not really a functional problem I'm having but more a strategic question. I am new to 3D-programming and when looking at tutorials and examples I recon that the coordinates are usually between -1 and 1.
It feels more natural using integers as coordinates, I think. Is there any particula reason(s) why small float-values...
Hi all,
I have two sets of Latitude/Longitude coordinates.
The first one is the coordinates of an equirectangular panorama picture.
The second one of a point in sight. So it is on the picture.
I need the x/y coordinates of the second point to draw it on the picture.
In javascript.
Example equirectangular panorama picture and applicat...
Hi,
I've created CocosNode, then inserted sprite in this node. I moved node and sprite separately. As result node has some coordinate, sprite has another coordinate. I see sprite on the screen, but sprite's coordinates are out of the screen borders.
So could you please explain how can I convert sprite coordinates to screen coordinates?
...
I need to convert rectangular coordinates to polar coordinates. Can you recommend a library that I can use, I would rather not have to write this myself.
This is used for making sense of metadata included in astronomy image files.
...
I am working with a hexagonal grid. I have chosen to use this coordinate system because it is quite elegant.
This question talks about generating the coordinates themselves, and is quite useful. My issue now is in converting these coordinates to and from actual pixel coordinates. I am looking for a simple way to find the center of a hex...
I have a database with Points of Interest that all have an address.
I want to know what is the method/name/call to get all nearby POIs from a given position.
I understand that I need to convert all my addresses to LAT / LON coordinates at least, but my question is:
for a given LAT / LONG how do I get from the database/array what POIs ...
Trouble!
I'm looking for a way to find the countries within a given range of LAT/LONG coordinates.
E.g.:
When viewing an area in Africa using Google Maps, I get out which countries that are in my current view.
This is a bit ambitious, and I think the main problem will be dealing with accuracy of the needed polygons. The accuracy of t...
I know about Flash's localToGlobal and globalToLocal methods to transform coordinates from the local system to the global system, but is there a way to achieve the intermediate? To transform coordinates from an arbitrary system to any other arbitrary system?
I have a clickable object inside a Sprite, and the Sprite is a child of the sta...
Hi,
I'm having real trouble finding out how to rotate an object arround two axes without changing axes orientation.
I need only local rotation, first arround X axis and then arround Y axis(only example, it doesn't matter how many transformations arround which axes) without transforming the whole coordinate system, only the object.
The p...
I'm trying to find information on how to change the coordinate system for the canvas. I have some vector data I'd like to draw to a canvas using things like circles and lines, but the data's coordinate system doesn't match the canvas coordinate system.
Is there a way to map the units I'm using to the screen's units?
I'm drawing to a...
How can I convert a shapefile from AGD66 to GDA94 programmatically, using open source libraries? I don't want to use arcgisscripting because I don't have a licence.
This needs to be automatable. A bash or python script would be acceptable.
This is a little more complicated than a normal reprojection, because a different ellipsoid is ...
I have point A(x,y) and B(x,y). they listed as array (a => array(x,y), b => array(x,y))
How get lenght between point A and B. Please help in php. :)
...
My former math teacher is going to eat me, but I was unable to solve this. I've got the x-y-coordinates of 2 reference points in 2 coordinate systems. For instance:
A: System 1: x=2, y=3; System 2: x=5, y=-2
B: System 1: x=4, y=0; System 2: x=-8, y=1
Using these as reference, I would like to convert the coordinates from system 1 to s...
I have a bunch of shapefiles to convert to kml.
I can open them, but I don't understand the coordinate systems they are in (nor was it provided by the creators).
For instance, this should be a point on the border of the city of Amsterdam: 'x': 106980.0, 'y': 491810.0.
Ideally I'd love to find a website, a library, a script, an oracle,...
Hi, I want to get the origin of scrollView in the window coordinate system. For Example, presently, scollView origin is (0,51). But in window coordinate system it should be 51 + 44(navigation bar height)+20(status bar height) = 115. Means in window coordinate system the scrollView.frame.origin should be (0,115). I tried with convertPoint...
I'm writing an application that calls for the conversion of image processing functions that take global x,y coordinates to ones that take u,v coordinates. How does the U,V coordinate system work?
...
Say you have a 2D grid with each spot on the grid having x number of objects (with x >=0). I am having trouble thinking of a clean algorithm so that when a user specifies a coordinate, the algorithm finds the closest coordinate (including the one specified) with an object on it.
For simplicity's sake, we'll assume that if 2 coordinates...