Questions tagged [coordinate-systems]

Coordinate systems use one or more numbers, or coordinates, to uniquely determine the position of a point or geometry in space.

Coordinate systems use one or more numbers, or coordinates, to uniquely determine the position of a point or geometry in space.

Latitude and longitude is part of a common coordinate system to refer to points relative to the Earth's surface. Global Positioning System (GPS) uses a coordinate system with latitude and longitude for navigation and locating objects on or near the Earth.

A Cartesian coordinate system uses X-Y-Z values to represent points in a 3-D space.

839 questions
-1
votes
1 answer

How to determine if a point lies on the diagonal of a square?

I need to write a function that finds the successors of a given coordinate. By successors I mean, 3 kinds: horizontal, vertical and diagonal. Horizontal its easy: match the row number of the coordinate to the row number of the next one and it is the…
-1
votes
2 answers

How to do zooming and panning to the user's location of click in OpenGL

I want to do something like ZoomTool in the portable application Global Mapper. You know when the user left-clicks on the image the application would zoom to the user's location of click and if right-clicks the application would zoom out of the…
Sepideh Abadpour
  • 2,039
  • 9
  • 44
  • 78
-2
votes
1 answer

How to calculate coordinate system based on normal vector and center coordinates?

I want to calculate the X direction vector that is determined by the normal vector (Z direction vector) and center coordinates. For example, given Z direction vector Z(2, 5, 8) , center coordinates point P(5, 10, 14) Since I have no idea how to do…
kiyo
  • 11
  • 4
-2
votes
1 answer

ScreenToWorldPoint does something strange in Unity

I am trying to convert from screen coordinates to world coordinates in Unity, but failing. I regarded third coordinate as a distance from camera according to documentation and tried GetComponent().ScreenToWorldPoint(new Vector3(0, 0, 0)) …
Dims
  • 37,353
  • 77
  • 251
  • 478
-3
votes
1 answer

Function to calculate angle to a point in unusual 2D space

I'm looking for a robust function to calculate the difference(delta) between an object and a point. For example, it there was an object at point A with an orientation of 1.2 Rad, what would be the required angle for the object to turn in order to…
-3
votes
1 answer

Can I present numbers from numbers from 0 to 255 in less than 8 bits?

I know that it takes 8 bits to demonstrate a number like 255 in binary system. I'm desperately looking for a way of storing numbers from 0 to 255 (especially from 90 to 255) in less than 8 bits. Anything can be helpful, like coordinate systems,…
-3
votes
2 answers

I have coordinates pool with x,y combniation I need to match nearest match of given x,y

Example 1 8.919280,45.622651 2 8.910296,45.626021 3 8.914084,45.627028 4 8.913913,45.62941 I have to match x,y not sum of x and y but closest of x and y. not closest of (x+y) or ((x1-x)+(y1-y)) both are wrong I need perfect…
-3
votes
1 answer

Coordinate system transformation, 3d projection to 2d plane

I have a global coordinates system (X, Y, Z), and a triangle with points (A, B, C and Center). I know all coordinates of those points. I need to move global coordinates system from (0; 0; 0) to the triangle center, so that all the points: A, B, C…
-3
votes
1 answer

how to find a square in a given set of points?

In a coordinate plane,you are given a set of points,say 10 points,lets consider them to be integers for the sake of simplicity.how to find out if a possible square lies within these 10 points?....if not, how many points to be added to these set of…
-3
votes
1 answer

How to Convert Oracle Spatial coordinates to Java Graphics coordinates?

I want to convert Oracle Spatial coordinates to java graphics coordinates. Please help me understand how to do that conversion? Is there any formula available?
-4
votes
1 answer

Android: LatLng object to String format

I'm using the function place.getLatLng() and i need it as "31°47′0″N 35°13′0″E", Is there a function for this?
guy ribak
  • 115
  • 1
  • 1
  • 7
-4
votes
2 answers

Minimum number of moves to reach a point in a grid?

Starting from (0, 0) , I have to reach (x, y) in such a way that at any point I can move one step left/right if previous move was up/down and vice-versa. What is the minimum number of moves needed ?
-6
votes
2 answers

How to plot polar function onto cartesian grid?

I have this polar function: r = A / log(B * tan(t / 2 * N) where A, B, N are arbitrary parameters and t is the angle theta in the polar coordinate system. Example graph for A=8, B=0.5, N=4 How can I plot this function onto a Cartesian coordinate…
Raoul Duke
  • 4,023
  • 2
  • 20
  • 18
-7
votes
1 answer

How to group close addresses?

I need to group addresses given their distances. Let's say I have a list of 8 addresses. 5 in NYC and 3 in New Jersey. From those 5 in NYC 3 are close to the MET and 2 to the WTC. Those 3 in NJ would form one group, those close to the MET another…
eestein
  • 4,354
  • 4
  • 45
  • 83
1 2 3
55
56