What are Cartesian coordinates (3D)?
Cartesian Coordinates (3D)
A three-dimensional Cartesian coordinate system is a system that gives the position of a point as three numbers (x, y, z) along three perpendicular axes.
From the plane to space
A Cartesian plane has two axes. The x-axis is horizontal and the y-axis is vertical. They cross at the origin, the point (0, 0), and they divide the plane into four sections called quadrants. A point is an ordered pair (x, y) that gives its distance along each axis from the origin.
A three-dimensional system adds a third axis, the z-axis, perpendicular to both. OpenStax calls the result the three-dimensional rectangular coordinate system. A point is an ordered triple (x, y, z). The search terms “3D Cartesian plane” and “xyz plane” mean this system.
Axes, origin and handedness
The three axes meet at the origin, the point (0, 0, 0). Each pair of axes forms a coordinate plane: the xy-plane, the xz-plane and the yz-plane. The xy-plane is the set of points (x, y, 0). The three planes divide space into eight regions called octants. The first octant is the one where x, y and z are all positive.
The right-hand rule fixes the direction of the axes. Align the fingers of the right hand with the positive x-axis. Curl them toward the positive y-axis, and the thumb points along the positive z-axis. OpenStax says its texts always use coordinate systems set up by the right-hand rule. A left-handed system is the mirror image of this one.
Distance and midpoint
The distance between two points is the square root of the sum of three squares. Take the points (x1, y1, z1) and (x2, y2, z2). The squares are (x2 - x1)², (y2 - y1)² and (z2 - z1)².
Worked example from OpenStax. Take P1 = (3, -1, 5) and P2 = (2, 1, -1). The differences are -1, 2 and -6. The squares are 1, 4 and 36. The sum is 41, so the distance is the square root of 41, about 6.40.
A second example: the distance from the origin to (3, 4, 12) is the square root of 9 + 16 + 144. That is the square root of 169, which is 13.
In a plane the formula has two terms. For (-3, -1) and (2, 3) the distance is the square root of 25 + 16, which is the square root of 41.
The midpoint of two points is the average of each coordinate. OpenStax uses it for the endpoints (-5, 2, 3) and (3, 4, -1). The midpoint is (-1, 3, 1).
Common mistakes
- Mixing the order. The triple (x, y, z) always lists the x value first. Swapping two values moves the point.
- Using a left-handed system without saying so. Two systems of opposite handedness give mirror-image results for the same numbers.
- Reading z as a height. In a local system z can point up, but in an Earth-centred system it is not a height.
- Mixing units. Give all three coordinates in the same unit. Earth-centred coordinates are conventionally in metres.
Earth-centred coordinates (ECEF)
The WGS 84 (World Geodetic System 1984) coordinate system is a right-handed Cartesian system fixed to the Earth. Its origin is the centre of mass of the Earth. The z-axis points to the IERS (International Earth Rotation and Reference Systems Service) Reference Pole. The x-axis lies on the IERS Reference Meridian. The y-axis completes the right-handed set, at longitude 90 degrees east. A receiver that uses the Global Positioning System (GPS) computes satellite positions and ranges in this system.
A standard conversion links latitude (φ), longitude (λ) and ellipsoidal height (h) to x, y and z. EPSG Guidance Note 7-2 gives it as:
- X = (N + h) cos φ cos λ
- Y = (N + h) cos φ sin λ
- Z = [(1 - e²) N + h] sin φ
Here N = a / √(1 - e² sin² φ) is the prime vertical radius of curvature. The symbol a is the semi-major axis of the ellipsoid, and e² is its eccentricity squared. For WGS 84, a = 6,378,137.0 m, and e² = 2f - f² with 1/f = 298.2572236.
Check it at two points with h = 0. At latitude 0 and longitude 0, the point is (6,378,137.0 m, 0, 0). At latitude 0 and longitude 90 degrees east, it is (0, 6,378,137.0 m, 0).
EPSG gives a full example. Take a point at latitude 53°48'33.820" N, longitude 2°07'46.380" E and ellipsoidal height 73.0 m. Its coordinates are X = 3,771,793.968 m, Y = 140,253.342 m and Z = 5,124,304.349 m. The height from this conversion is above the ellipsoid. It is not the height above mean sea level.
Local coordinates
A topocentric system is a Cartesian system with its origin on or near the Earth’s surface. Its U axis points east, its V axis points north and its W axis points up. The three axes are perpendicular, and the system is right-handed.
Cartesian coordinates at an airfield
EASA requires an aerodrome operator to use WGS-84 as the horizontal reference system. It requires mean sea level as the vertical reference system. EASA also says that a reference system defines an origin, the orientation of an orthogonal set of Cartesian axes and a scale. ICAO Annex 14 also names WGS-84 as the horizontal reference system. Annex 14 states reported aeronautical geographical coordinates as latitude and longitude in the WGS-84 datum.
A coordinate is only useful together with the reference system that defines its origin and axes. See Coordinate Reference System , Geodetic Datum and Coordinate Transformation . GPS delivers a height above the ellipsoid, and an aerodrome reference uses mean sea level. Convert one to the other before you compare them.
Frequently Asked Questions
- What are the three axes of a 3D Cartesian plane?
- The three axes are the x-axis, the y-axis and the z-axis. They are perpendicular to each other and meet at the origin, the point (0, 0, 0). An ordered triple (x, y, z) names a point and gives its position along each axis.
- How do you find the distance between two points in 3D?
- Take the difference of each coordinate, square each difference, add the three squares and take the square root. For (3, -1, 5) and (2, 1, -1) the squares are 1, 4 and 36. The sum is 41, so the distance is the square root of 41, about 6.40.
- How many octants does a 3D coordinate system have?
- A 3D coordinate system has eight octants. The three coordinate planes (xy, xz and yz) divide space into eight regions about the origin. The first octant is the region where x, y and z are all positive.
- What is the difference between a right-handed and a left-handed coordinate system?
- In a right-handed system, point the fingers of the right hand along the positive x-axis. Curl them toward the positive y-axis, and the thumb points along the positive z-axis. A left-handed system is the mirror image. The right-handed form is the standard one, and WGS 84 is right-handed.
- What is the difference between a 2D and a 3D Cartesian plane?
- A 2D Cartesian plane has two perpendicular axes, x and y, and a point is an ordered pair (x, y). A 3D system adds a third perpendicular axis, z, and a point is an ordered triple (x, y, z). The distance formula gains a third squared term.
- How do ECEF coordinates relate to Cartesian coordinates?
- ECEF (Earth-centred, Earth-fixed) coordinates are three-dimensional Cartesian coordinates with the origin at the centre of mass of the Earth. The axes turn with the Earth, so a point fixed on the ground keeps the same coordinates. GPS computes satellite positions and ranges in the WGS 84 ECEF system.
- Is the z value of an ECEF coordinate the height above the ground?
- No. The z-axis points to the IERS Reference Pole, so z grows toward the north pole and is not a height. Height needs a conversion to latitude, longitude and ellipsoidal height. An ellipsoidal height is not the same as a height above mean sea level, because the two differ by the geoid undulation.
References
- openstax-calc3-2-2
- Calculus Volume 3, Section 2.2 Vectors in Three Dimensions OpenStax
- nga-stnd-0036-wgs84
- NGA.STND.0036_1.0.0_WGS84, Department of Defense World Geodetic System 1984 (2014-07-08) National Geospatial-Intelligence Agency
- epsg-gn7-2
- OGP Publication 373-7-2, Geomatics Guidance Note 7, part 2: Coordinate Conversions and Transformations including Formulas (July 2012) IOGP / EPSG
- gps-sps-ps-2020
- Global Positioning System Standard Positioning Service Performance Standard, 5th edition (April 2020) US Department of Defense / GPS.gov
- easa-ear-aerodromes
- Easy Access Rules for Aerodromes (Regulation (EU) No 139/2014) EASA
- icao-annex-14-vol-1
- ICAO Annex 14 Volume I, Aerodrome Design and Operations, 9th edition (July 2022) ICAO (copy hosted by the Swiss FOCA)
- openstax-algebra-2-1
- Algebra and Trigonometry 2e, Section 2.1 The Rectangular Coordinate Systems and Graphs OpenStax
This is a reference entry. TarmacView provides drone inspection services and doesn't sell the equipment or materials described in this glossary.