Cartesian coordinate system

Also known as: XYZ coordinates

On this page 7

The Cartesian coordinate system is a framework that describes any position as an ordered set of numbers measured along mutually perpendicular axes that meet at a single origin. In 3D graphics & animation it supplies the X, Y and Z values that store every vertex, camera and light, which makes it the first idea in 3D fundamentals and the language every modeling, rendering and animation tool shares.

Practitioners often call it XYZ coordinates. The concept is simple, yet the conventions layered on top of it, such as handedness, the choice of up axis and the units assigned to one coordinate step, cause a large share of practical errors when assets move between applications.

How Cartesian coordinates locate a point in 3D space

A point in three-dimensional space is located by three signed distances from the origin, one along each axis, written as the triple (x, y, z). The origin itself is (0, 0, 0), and the sign of each value tells the software on which side of the corresponding plane the point lies.

The three axes define three coordinate planes: XY, XZ and YZ. Every axis is a straight line, every unit along it has the same length, and the axes meet at right angles, which is the property that distinguishes a Cartesian system from oblique or curvilinear systems. Because of this orthogonality, the distance between two points follows directly from the Pythagorean theorem extended to three components.

The table below lists the building blocks of the system and the role each plays inside a 3D application.

ComponentDefinitionRole in 3D software
OriginPoint (0, 0, 0) where the axes intersectReference for world space and default pivot placement
AxesThree perpendicular number lines X, Y and ZDirections for moving, rotating and scaling objects
Coordinate planesFlat surfaces spanned by two axesGround grid, mirror planes and orthographic views
Unit lengthDistance represented by one coordinate stepLinks scene values to meters, centimeters or inches
Basis vectorsUnit vectors pointing along each axisColumns of transform matrices and orientation gizmos
Components of a 3D Cartesian frame

Handedness and up axis conventions

Three perpendicular axes can be arranged in two mirror-image ways, called right-handed and left-handed systems. In a right-handed system, curling the fingers of the right hand from X toward Y makes the thumb point along positive Z; in a left-handed system the left hand produces the same result. Handedness determines the direction of positive rotation, the sign of the cross product and therefore the default orientation of computed surface normals.

Independently of handedness, each application chooses an up axis, the axis that points toward the sky in the default view. Applications rooted in architecture and engineering tend to use Z-up, while many animation and game tools use Y-up. The following table summarizes common conventions; individual settings can often be changed per project.

Tool or formatHandednessUp axis
BlenderRight-handedZ-up
Autodesk MayaRight-handedY-up by default
3ds MaxRight-handedZ-up
UnityLeft-handedY-up
Unreal EngineLeft-handedZ-up
glTF 2.0Right-handedY-up
Typical axis conventions in 3D tools and formats

Mismatched conventions do not corrupt geometry, but they rotate or mirror the result. A mirrored import flips the winding order of polygons, so faces may appear inside out unless the exporter compensates by negating one axis and reversing the vertex order.

Coordinates within the 3D pipeline

A rendered image is produced by passing coordinates through a chain of Cartesian frames, each related to the next by a transform. A vertex is stored in local space, relative to the object pivot point; the object transform moves it into world space; the virtual camera then expresses it in view space, and the projection step maps it to clip space and finally to screen pixels.

Graphics software represents these changes with 4×4 matrices acting on homogeneous coordinates (x, y, z, w). The fourth component allows translation and perspective projection to be written as matrix multiplication, so a whole object hierarchy can be resolved by multiplying parent and child matrices in sequence.

SpaceOrigin located atTypical use
Local spaceObject pivot pointModeling, vertex editing and rigging
World spaceScene originPlacing objects, physics and lighting
View spaceCamera positionDepth sorting and view-dependent shading
Clip spaceCenter of the view volumeClipping against near and far planes
Screen spaceCorner of the imageRasterization and post-processing
Coordinate spaces a vertex passes through

Cartesian coordinates compared with other systems

Cartesian coordinates are the default storage format for geometry, but other systems describe some quantities more naturally. Software converts between them whenever a tool, such as an orbit camera or a spherical light probe, works more conveniently with angles than with linear distances.

SystemValues storedWhere it helps
Cartesianx, y, z distancesVertex positions, transforms and bounding boxes
SphericalRadius, azimuth and elevationOrbit cameras, environment maps and light directions
CylindricalRadius, angle and heightLathe modeling and radial arrays
BarycentricThree weights summing to oneInterpolating attributes across a triangle face
UV texture spaceTwo values from 0 to 1Mapping images onto surfaces
Coordinate systems used alongside Cartesian coordinates

The key advantage of the Cartesian form is that linear operations stay linear: adding two position vectors, scaling them or interpolating between them requires only componentwise arithmetic, which is exactly what GPUs execute most efficiently.

Precision, units and common mistakes

Coordinates are stored as floating-point numbers, usually 32-bit on the GPU. A 32-bit float carries roughly seven significant decimal digits, so precision falls as values grow: near the origin, submillimeter detail is safe, while objects placed tens of kilometers away begin to jitter or show z-fighting. Large open worlds therefore use origin rebasing, periodically shifting the world so the active area stays near (0, 0, 0).

  • Unit mismatch: a model built in centimeters and imported as meters appears 100 times too large; set the scene unit before modeling.
  • Wrong up axis: characters lie on their backs after import; apply an axis conversion in the exporter rather than rotating by hand.
  • Unapplied transforms: local coordinates and world coordinates diverge, so modifiers and physics behave unexpectedly; freeze or apply transforms before export.
  • Distant geometry: precision artifacts appear far from the origin; keep working areas centered and split very large scenes.

Stripped to the essentials

Imagine standing in the corner of an empty room. Any spot in that room can be described with three numbers: how far to walk along one wall, how far along the other wall, and how high to reach. That is all a Cartesian coordinate system does.

3D software uses these three numbers, called X, Y and Z, for every corner of every object. The main thing to remember is that different programs may disagree on which direction is up and how big one step is, so files sometimes need converting when they move from one program to another.

Where it is applied

An architectural visualization studio receives a building model exported from a CAD package that uses Z-up and millimeters. The team must place it inside a real-time engine scene set to Y-up and meters for an interactive client walkthrough.

On the first import, the building lies on its side and measures about 40 kilometers across, because 40,000 millimeters were read as 40,000 meters. The technical artist re-exports with a unit scale of 0.001 and an axis conversion that maps Z to Y, then moves the model so the main entrance sits at the origin to keep floating-point precision high in the area visitors explore.

The result is a correctly oriented 40-meter building whose doors, stairs and furniture align with engine colliders. Correct axis and unit settings at export removed hours of manual rotation and rescaling for every later revision of the model.