coordinates

iPhone GPS Accuracy

Hi everyone, as I am developing for iPhone, I've just bought an iPhone 4 to test my application which needs to measure the coordinates of my location. I don't have any Internet (3GS, GPRS or whatever...) on my iPhone and the problem is: 1) Without internet I get a 1744m horizontal accuracy, and that's very bad. (I've also tested the acc...

Switch positions when changing between two layouts.

Hello, I'm writing a game in which I have a character that can be dressed with clothes, glasses, moustaches, etc. For the Avatar I use a Layout and for the container of the items, I use a scrollview with another layout that contains the items. When I touch an item in the scrollview I need it to be added to the avatar layout, and modify ...

Finding a set of coordinates within a certain range from latitude longitide

I am working on a project in javascript involving google maps. The goal is to figure out 16-20 coordinate points within n kilometers from a set of latitude longitude coordinates such that the 16 points if connected will form a circle around the original coordinates. The end goal is to make it so I can figure out coordinates to plot and...

UIImage in the end of UILabel text

Hi there, how to find coordinate of the last character in UILabel if we have more then 1 line of text in it? I would like to add an image in the end of the text. ...

Calculating the Length of Intersections (through a 2d grid).

I have a line that I must do calculations on for each grid square the line passes through. I have used the Superline algorithm to get all these grid squares. This gives me an array of X,Y coordinates to check. Now, here is where I am stuck, I need to be able to calculate the distance traveled through each of the grid squares... As in, ...

Get ECEF XYZ given starting coordinates, range, azimuth, and elevation

I'm having a problem locating anything on converting RAE to XYZ. If I am on a WGS84 spheroid, at say position -742507, -5462738, 3196706 and I detect an object at a range of 30km, azimuth of 310, and elevation angle of 18 degrees how can I convert that to ECEF XYZ coordinates? Thanks. ...

Accounting for misalignment of wheels in diff drive odometry.

I have a differential drive robot, using odometery to infer its position. I am using the standard equations: WheelBase = 35.5cm; WheelRadius = 5cm; WheelCircumference = (WheelRadius * 2 * Math.PI); WheelCircumferencePerEncoderClick = WheelCircumference / 360; DistanceLeft = WheelCircumferencePerEncoderClick * EncoderCountLeft Distance...

Infinite initial bounding triangle in iterative Delaunay triangulators.

Most iterative algorithms require an initial empty triangle to get the ball rolling. It seems like a commonly used trick is just to make the super triangle very large in comparison with the point set. But according to "Numerical recipes: the art of scientific computing": "...if the distance is merely finite (to the boundary points) th...

I need to know the predefined point is in the sea or on the land

Hi, I have a system where users put some coordinates (latitude/longitude), I need to check if specified coordinates are in the sea or not. Is there any service that could give me the answer. Or is it possible to do this using google maps. thank you in advance. ...

How do i get the x/y coordinates of the first and last points of the drawn arc relative to the top left corner of the canvas?

I have a square canvas with a width of 100 and a height of 100. Within that square I draw an arc like so: var canvas = document.getElementById('myCanvas'); var ctx = canvas.getContext('2d'); ctx.clearRect(0,0,100,100) // clears "myCanvas" which is 100pixels by 100 pixels ctx.beginPath(); ctx.arc( 50, 50, 30, 0, Math.PI*2/6 , false )...

How to determine which Geocoordinates are inside a defined Area?

Hello, my Application is given a list of Geocorrdinates and now I have to determine which of those Coordinates are inside a defined Area. For example the Search would definiton would be: Show me all Areas where 100 Coordinates are in an Area of 1km^2. So I have to find out which of these coordinates are together in Areas of 1km^2 and mo...

Content coordinates updated to late after scroll event.

Hi. I've got a bit of a problem with functionality that I want to achieve. In my application I have Canvas container with verticalScrollPolicy set to on. Inside the Canvas I have multiple components that user can drag within the Canvas boundaries. When user clicks on any component, it gets selected and semi-transparent box appears behin...

How can i calculate the distance between two gps points in Java?

I used this code but it doesnt work: Need the distance between two gps coordinates like 41.1212, 11.2323 in kilometers (Java) double d2r = (180 / Math.PI); double distance = 0; try{ double dlong = (endpoint.getLon() - startpoint.getLon()) * d2r; double dlat = (endpoint.getLat() - startpoint.getLat()) * d2r; double a = ...

How can I display a HTML element at a precise location?

Hello, My question is almost stupid because I think I know the answer but I wanna be sure. Does it exist a mechanism to be able to put a tag at a specific location. I mean, I can set the coordinates X and Y of a tag. Maybe this specific tag should be placed in a special parent tag? Do you know an another way to do this? An example sho...

Is there any Control in .Net to plot a graph in C#?

I want to know that how to plot a graph in C#? Like i give input in form of coordinates (x,y) and get a graph plotted with these values? (I want to know that where will this graph be plotted, on windows form or any other control?) ...

Struggling with cocoa view coordinates - selecting intersecting NSRects in NSCollectionView

Hello, I'm trying to subclass NSCollectionView in order to add item padding and eventually work on drag and drop (10.5). I've managed to add the padding but at the loss of the default selection functionality. I've gotten a selection box drawing in the NSCollectionView but I'm having trouble with selecting the items inside the selection ...

Acquiring coordinates readouts from an optical mouse ala wiimote (MATLAB code)

I plan to get the x-y coordinated reading from an optical mouse. Basically, I want the readout to be something like this but instead of using a Wiimote, I'll be using a standard USB mouse. I have found quite a good example - [http://www.synbio.org.uk/component/content/article/46-instrumentation-news/1234-interfacing-an-optical-mouse-sen...

How to return absolute pixel coordinates of the end of a string in a text input?

I would like to be able to dynamically insert a div at the end of a string in a text input. For example, if I have a text input... MyInput: <input type="text" name="myInput" value="" /> ...and in their browser someone types... MyInput: Here is some sample input I would like to generate the div immediately after the word input. D...

Graphing x-y coordinates from a mouse with Processing

I've found this really cool site on interfacing an Arduino to an optical mouse to read out x-y readings from it. I've done it, and it's working nicely. Then I was thinking, 'Why not plot all this to become a graph?' and I came across Processing. I am aware that Processing has an example named 'MouseSignal' This example is the EXACT th...

Convert mouse position to world coordinates in 2D openGL after window resize

When the program I wrote starts up, I have some vertices in a window. The viewport is set to take up the entire window. On a mouse click, the distance from the mouse position to each of the vertices is calculated. If any of them are within a certain threshold (let's say 5 units), the vertex is selected. This part works with no problem. ...