Questions tagged [cartesian-coordinates]

A Cartesian coordinate system specifies each point uniquely in a plane by a pair of numerical coordinates

A Cartesian coordinate system specifies each point uniquely in a plane by a pair of numerical coordinates, which are the signed distances from the point to two fixed perpendicular directed lines, measured in the same unit of length. Each reference line is called a coordinate axis or just axis of the system, and the point where they meet is its origin, usually at ordered pair (0,0). The coordinates can also be defined as the positions of the perpendicular projections of the point onto the two axes, expressed as signed distances from the origin.

One can use the same principle to specify the position of any point in three-dimensional space by three Cartesian coordinates, its signed distances to three mutually perpendicular planes (or, equivalently, by its perpendicular projection onto three mutually perpendicular lines). In general, one can specify a point in a space of any dimension n by use of n Cartesian coordinates, the signed distances from n mutually perpendicular hyperplanes.

The invention of Cartesian coordinates in the 17th century by René Descartes (Latinized name: Cartesius) revolutionized mathematics by providing the first systematic link between Euclidean geometry and algebra. Using the Cartesian coordinate system, geometric shapes (such as curves) can be described by Cartesian equations: algebraic equations involving the coordinates of the points lying on the shape.

Cartesian coordinates are the foundation of analytic geometry, and provide enlightening geometric interpretations for many other branches of mathematics, such as linear algebra, complex analysis, differential geometry, multivariate calculus, group theory, and more. A familiar example is the concept of the graph of a function. Cartesian coordinates are also essential tools for most applied disciplines that deal with geometry, including astronomy, physics, engineering, and many more. They are the most common coordinate system used in computer graphics, computer-aided geometric design, and other geometry-related data processing.

via: Wikipedia

219 questions
18
votes
3 answers

Calculating angles between line segments (Python) with math.atan2

I am working on a spatial analysis problem and part of this workflow is to calculate the angle between connected line segments. Each line segment is composed of only two points, and each point has a pair of XY coordinates (Cartesian). Here is the…
Alex Tereshenkov
  • 3,340
  • 8
  • 36
  • 61
12
votes
1 answer

How to convert cartesian coordinates to polar coordinates in JS?

I need to know angle of rotation in polar coordinates using X and Y from cartesian coordinates. How to do it in JS without a lot of IF statements? I know that I can do it using , but I think that it will be bad for performance, because it is in…
levshkatov
  • 477
  • 2
  • 5
  • 16
10
votes
2 answers

Coordinates from distance matrix in R

Is there a package to convert a distance matrix to a set of coordinates? I have gone throught the below question. I was hoping there would be a package for this. Finding the coordinates of points from distance matrix I have considered Sammons…
Avinash
  • 2,521
  • 4
  • 21
  • 35
9
votes
3 answers

Returning a list of every possible coordinate in a grid of that width and height

So I am writing a function allCoords that returns a list of every possible coordinate in a grid of width w and height h Both width and height must be non-negative integers in order to return a sensible result. Example: allCoords 3 2 should return…
8
votes
7 answers

R: Converting cartesian coordinates to polar coordinates, and then calculating distance from origin

I've been looking for a solution to convert cartesian coordinates (lat, long) that I have to polar coordinates in order to facilitate a simulation that I want to run, but I haven't found any questions or answers here for doing this in R. There are a…
7
votes
2 answers

How to plot scipy.hierarchy.dendrogram using polar coordinates?

I'm trying to adapt the following resources to this question: Python conversion between coordinates https://matplotlib.org/gallery/pie_and_polar_charts/polar_scatter.html I can't seem to get the coordinates to transfer the dendrogram shape over to…
O.rka
  • 29,847
  • 68
  • 194
  • 309
6
votes
1 answer

How to convert Longitude,Latitude, Elevation to Cartesian coordinates?

I downloaded weather data and it has longitude (in decimal), latitude (in decimal), and elevation (in m) values. There is no information about the coordinate system used. How I can convert it to cartesian coordinates ?. My attempts are below. But,…
Yasmin
  • 931
  • 3
  • 14
  • 35
6
votes
2 answers

Triangulation algorithm on grid with signal strength C#

(The small dots in the corners are the nodes and the red dot is the person being tracked) Coordinates: Node X Y Position 1 0 0 Top left 2 450 0 Top right 3 0 450 Bottom left 4 450 450 Bottom right Person X…
Tiax
  • 269
  • 5
  • 14
5
votes
2 answers

Converting spherical coordinates into Cartesian and then converting back into Cartesian isn't giving the desired output

I'm trying to write two functions for converting Cartesian coordinates to spherical coordinates and vice-versa. Here are the equations that I've used for the conversions (also could be found on this Wikipedia page): And Here is my…
5
votes
1 answer

Move point in cartesian coordinate through distance in the given direction

I have a point in cartesian coordinate system for example : x = 3 & y = 5 And I want to get new coordinate of this point after a move through a distance in the given direction (in degrees). How I can do for get new x and new y ?
5
votes
1 answer

Longitude, Latitude, Altitude to 3D-Cartesian Coordinate Systems

I'm wondering about the transformation from Lat,Lon,Alt Values to 3D-Systems like ECEF (Earth-Centered). This can be implemented as follows (https://gist.github.com/1536054): /* * WGS84 ellipsoid constants Radius */ private static final double a =…
Frame91
  • 3,670
  • 8
  • 45
  • 89
4
votes
1 answer

Printing a frame within frame

I got this assignment in Java and I don't have a single clue on how to do it. The task is to receive an integer n > 0, and to print n number of frames constructed by * inside each other, while the inner frame will have the letter "X" constructed by…
4
votes
4 answers

How can I manipulate cartesian coordinates in Python?

I have a collection of basic cartesian coordinates and I'd like to manipulate them with Python. For example, I have the following box (with coordinates show as the corners): 0,4---4,4 0,0---4,0 I'd like to be able to find a row that starts with…
Alligator
  • 691
  • 3
  • 11
  • 21
4
votes
1 answer

How to find angle of point from x-axis independant of quadrant?

Given a point (x,y), how do I calculate the angle from the x-axis? | . <- (x,y) | / | / | / |/ --------+--------- | | Currently I have Math.atan(y/x) * 180 / Math.PI; However, this does…
Anubian Noob
  • 13,426
  • 6
  • 53
  • 75
3
votes
1 answer

How to proof with Sympy that a given Cartesian equation can be written as a given polar equation

i have an assignment on sympy and am struggling with the following question: "Prove with the help of Sympy that 4*(x2 + y2 -ax)3 = 27a2(x2+y2)2 can be written using r = 4a*cos(theta/3)3". I have tried to substitute x = r*cos(theta) and y =…
1
2 3
14 15