A robot geometry interface may store both a feature location and an approach displacement as three numbers. That matching array size does not make them interchangeable. A location refers to a point relative to an origin. A free displacement describes the difference between points.
When changing coordinates with a rigid transformation, the translation term applies to the point. It does not apply to the free displacement. Homogeneous coordinates make that distinction explicit through the fourth component, rather than leaving software to infer meaning from three similar-looking values.
Specify the mapping before multiplying
Use column vectors and define a transformation from coordinates in frame B to coordinates in frame A. Its rotation R turns B's x direction into A's positive y direction, B's y direction into A's negative x direction, and leaves z unchanged. This is a right-handed 90-degree rotation about z.
Define the translation t = (0.6, -0.2, 0.1) meters, expressed in A. It is the location of B's origin in A. The mapping for a point is pA = R × pB + t.
In homogeneous matrix form, the transformation has rotation R in its upper-left three-by-three block, t in its upper-right column, and bottom row (0, 0, 0, 1).
All values here are hypothetical geometry. They are not calibration measurements or motion commands. The mapping direction and column-vector convention are fixed throughout the calculation.
A point carries a homogeneous weight of one
Take pB = (0.2, 0.1, 0.3) meters. Rotation alone gives R × pB = (-0.1, 0.2, 0.3) meters. Adding t gives pA = (0.5, 0, 0.4) meters.
Append a fourth component of one to the point: (0.2, 0.1, 0.3, 1). Multiplying by the four-by-four matrix yields (0.5, 0, 0.4, 1).
The multiplication's upper three components are R × pB + t × 1. Its bottom component remains one. The fourth entry is a mathematical weight, not an extra spatial coordinate or a timestamp.
The point at B's origin gives another direct check. Its homogeneous coordinates are (0, 0, 0, 1), and the transformed result is (0.6, -0.2, 0.1, 1). That matches the translation's stated meaning.
A displacement has a different fourth component
Add a second point qB = (0.3, 0.1, 0.3) meters. The displacement from pB to qB is dB = qB - pB = (0.1, 0, 0) meters.
Transforming qB as a point gives qA = (0.5, 0.1, 0.4) meters. Subtracting the transformed points gives dA = qA - pA = (0, 0.1, 0) meters.
The translation cancels because both points received the same t. Algebraically, (R × qB + t) - (R × pB + t) equals R × (qB - pB).
In homogeneous coordinates, subtracting the two point representations also subtracts their fourth components: one minus one equals zero. Thus the displacement is represented by (0.1, 0, 0, 0), and transformation yields (0, 0.1, 0, 0).
The upper block now evaluates R × dB + t × 0. The zero weight excludes the translation while retaining the rotation.
The wrong weight creates a concrete error
Suppose software mistakenly appends one to dB. The resulting upper components are R × dB + t = (0.6, -0.1, 0.1) meters, rather than (0, 0.1, 0).
That incorrect output has magnitude about 0.61644 meters. The actual displacement magnitude is 0.1 meter in either frame because R is a pure rotation. The error comes from treating a displacement as a point, not from rounding or a slightly inaccurate rotation angle.
Making the frame translation larger would make this mistake larger even though the geometric displacement remained the same. Normalizing the incorrect output would change its length but would not recover the intended direction.
Conversely, appending zero to a feature point would omit its origin offset. The first point would then appear at (-0.1, 0.2, 0.3) instead of (0.5, 0, 0.4). These are distinct errors with the same semantic cause.
An inverse needs the point's translation too
For the original rigid mapping, recovering a point in B requires pB = R transpose × (pA - t). Subtracting t first returns (-0.1, 0.2, 0.3), and applying R transpose returns (0.2, 0.1, 0.3).
For a displacement, the inverse is simply dB = R transpose × dA. There is no point-origin subtraction because translation never entered that displacement's mapping.
A full rigid inverse matrix contains both the transposed rotation and the corresponding inverse translation. Replacing the whole four-by-four inverse with a transposed four-by-four matrix would not implement that rule.
Libraries still need the quantity's meaning
Modern Robotics introduces the homogeneous transformation matrix and the appended one for a point. Eigen's geometry documentation, viewed in its 5.0.1 development edition, distinguishes applying the full affine transformation to a point from applying its linear component to a vector.
A software library can represent both quantities with the same three-component type. That storage decision does not remove the geometric distinction. The calling code still needs to know whether its value is a location or a free vector.
The rotation-only rule here is specifically for free displacements under a rigid transformation. It is not a blanket conversion rule for every robot quantity named velocity, force, or normal under arbitrary transformations. Those quantities retain their own definitions and, where applicable, reference points or nonrigid transformation rules.
The useful interface therefore preserves semantic type alongside frame and units. Once a point's weight is one and a displacement's weight is zero, the matrix arithmetic expresses exactly why one receives translation and the other does not.
Image note: The accompanying site-library robot and computer scene is a conceptual illustration. It does not show the hypothetical frames, measured calibration, or verified robot motion.
Sources checked October 23, 2026:
Modern Robotics, 3.3.1 Homogeneous Transformation Matrices: https://modernrobotics.northwestern.edu/nu-gm-book-resource/3-3-1-homogeneous-transformation-matrices/
Eigen, Space transformations, development documentation as accessed: https://libeigen.gitlab.io/eigen/docs-nightly/group__TutorialGeometry.html
All coordinates, matrix checks, comparisons, and interpretation: original ZHILIANHAI editorial analysis.