Hello,
I have a requirement to calculate the centroid or geodesic midpoint of
when a user clicks in between the lat/long grid crossing.
The crossing forms a square in most parts of GE and sometimes
elongated rectangles. This is due to the shape of the earth of course.
I'm looking for a valid mathematical formula that would allow a ...
Hello,
I have a webcam pointed at a table at a slant and with it I track markers.
I have a transformationMatrix in OpenSceneGraph and its translation part contains the relative coordinates from the tracked Object to the Camera.
Because the Camera is pointed at a slant, when I move the marker across the table the Y and Z axis is updated, ...
I'm very new to creating games (and working in OpenGL in general). I'm trying to make a 2D game but have come upon a stumbling point when trying to get my head around collision detection.
Lets say for example I translate the current matrix, the rotate and translate again and then draw a point. How do I know where that point is in relat...
The thing is I have some graphics shown in a form, rectangle for example, and I want to capture when the point gets over thees fields. So I Thoght I try to find the corrrdinates for thees rectangles, but as thay are the coords in the form it dose not match the ones with the mouse location.
So I wonder is there a way to find what coord o...
I'm trying to get the users current latitude and longitude with this viewDidLoad method. The resulting map is correctly indicating the current location however the NSLog consistently shows:
2009-09-19 16:45:29.765 Mapper[671:207] user latitude = 0.000000
2009-09-19 16:45:29.772 Mapper[671:207] user longitude = 0.000000
Anyone know wh...
Hi,
I have an InkCanvas which has it's children programmically added in through C#. They are not set with InkCanvas.LeftProperty or InkCanvas.TopProperty. I was wondering if it was at all possible to get these default X and Y values of the elements. Currently if I check the InkCanvas.LeftProperty or InkCanvas.TopProperty it would return...
Hi,
I'm trying to figure out stage coordinates (x,y) so I can have an object in a legend move when an object in a picture is clicked.
Thanks
...
If I have the coordinates of a point (lat lon) and the azimuth angle how can I calculate what points are at "the end' of a distance of 10 miles.
Ex. I am watching North , I know I am at a certain point ... At 10 miles apart what coordinates has that geo point ?
...
The GetClientRect function, according to MSDN, is actaully only good for determining the client width & height, since left & top are always zero. Is there a way to get the complete client coordinates, including left & top (either in screen space, or in window space)?
...
It's been a while since my math in university, and now I've come to need it like I never thought i would.
So, this is what I want to achieve:
Having a set of 3D points (geographical points, latitude and longitude, altitude doesn't matter), I want to display them on a screen, considering the direction I want to take into account.
This is...
I have a point at 0,0,0
I rotate the point 30 deg around the Y axis, then 30 deg around the X axis.
I then want to move the point 10 units forward.
I know how to work out the new X and Y position
MovementX = cos(angle) * MoveDistance;
MovementY = sin(angle) * MoveDistance;
But then I realised that these values will change because of ...
I am using UIMapView to display locations on the iPhone. I want to do a directions from current location to the location of interest, I don't think its possible using MapKit (but if it is please inform) So I will open either the Google Maps application or safari to display it.
Can i do this by specifying co-ordinates from (current locat...
My program draw 10 polygon triangles in random sizes (width and height). The coordinate (points) of the polygon were generated using Random generator = new Random(). Since the points of the triangle and the width and height were randomly generated, how can I control the number of sizes drawn? e.g. there are 10 polygon in total, but I wan...
Is it possible to determine the pixel co-ordinates of a given marker, taking into account current zoom level and visible area of the map?
...
I have some .map OZI calibrated maps. From those .map, I can get some calibration points (x y in the jpeg picture + lon lat in WGS84).
MMPXY,1,142,142
MMPXY,2,5217,142
MMPXY,3,5217,3422
MMPXY,4,142,3422
MMPLL,1, -0.269639, 39.626293
MMPLL,2, -0.186306, 39.626293
MMPLL,3, -0.186306, 39.584626
MMPLL,4, -0.269639, 39.584626
With ...
Is it possible to compare touch coordinates made by the users on the UIView to the one store in a plist or txt format? The argument looks like this;
if (user touch coordinate == touch coordinate stored in plist or text)
then
(do something)
else
(do something)
If possible in what format should i write the coordinates in t...
Hi,
I'm currently writing an application that actually acts as a "cut" tool for 3D meshes. Well, I had some problems with it now which I am clueless on how to solve, since it is my first application.
I have loaded a model from an object file onto the canvas, then on the same canvas, I use the mouse drag event to draw lines to define t...
I want to store some coordinates on a text files that correspond to an image array i will call out on my apps. Is it possible to write it in a notepad and save it as a .txt and be able to read in xcode the coordinates written inside or do i have to use plist format for that?
thank you.
...
I'm trying to develop a page in ASP.NET that will act as a tile-server for a Google Map
It will pull a collection of latitude/longitude points from the database, then render them as small red dots on a transparent background, given a zoom-level (default: 15).
It will then return the result as a GIF-type image.
Have any algorithms or l...
Hello
I am curious how hard it would it be to detect current coordinates by mobile phone? I am planning to write a mobile application which will focus on phones that can run java (ie Samsung Omina) and it will be based on the location of the user so I can do some Google map action using the coords.
Using GPS sounds like an idea, howev...