Shapes & spaces

Rigid transformation screw axis calculator from a matrix

Extract a screw-motion description from a proper homogeneous rigid transformation: rotation angle, axis direction, an axis point, axial advance and pitch.

Your numbers

Rows separated by semicolons; values by commas.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Extract a screw-motion description from a proper homogeneous rigid transformation: rotation angle, axis direction, an axis point, axial advance and pitch. Pure translations and identity are reported separately rather than assigned an artificial finite pitch. The reconstruction residual checks the returned axis against the entered transform.

THE FORMULAT(x)=R x+t; (I−R)p=t−(u·t)u, p·u=0.

A worked example

A quarter-turn around z with translation (0,0,2) has the z-axis through the origin as its screw axis. Its rotation angle is π/2, axial advance is 2, and pitch is 2/(π/2) = 4/π units per radian.

Good to know

Proper rotation and homogeneous last row, floating point. Pure translation/identity have separate labels and no finite pitch; axis sign atπ conventional.

Validate the homogeneous transform first

A rigid transform has a three-by-three proper rotation block, a translation column and final row zero,zero,zero,one. The rotation must be orthogonal with determinant plus one. A reflection, scaling or shearing matrix is not a proper rigid rotation even if its entries resemble a familiar spatial operation.

The page checks these conditions within numerical tolerance before extracting an axis. It does not project a noisy general matrix onto the nearest rigid transform automatically. If data are measured and need fitting, perform that estimation separately and report that the screw description then applies to the fitted transform.

Screw motion combines rotation about an axis with axial travelz axisRotation: π/2Advance: 2Pitch: 4/π
A quarter-turn around z with translation (0,0,2) has the z-axis through the origin as its screw axis. Its rotation angle is π/2, axial advance is 2, and pitch is 2/(π/2) = 4/π units per radian. Diagram is schematic; labels specify the numerical values.

The Quaternion SLERP calculator between two orientations interpolates quaternion orientations on their shortest representative arc. Screw extraction here analyzes one complete rotation-and-translation matrix and handles pure translation separately.

Interpret a screw motion geometrically

A general orientation-preserving rigid motion can be described as rotation around an axis combined with translation along that same axis. The angle describes the rotation, axial advance is the translation distance along the axis, and pitch is advance divided by angle in radians.

Pitch therefore has length per radian units here, not length per complete revolution. Multiplying by two pi would give the corresponding full-turn advance if that extension is meaningful. The transform describes one finite motion and does not by itself imply continuous physical motion at a constant screw speed.

Choose a unique representative axis point

Every point along the same axis describes the same line. The solver chooses the axis point perpendicular to the unit axis direction, giving the point nearest the origin. This removes the otherwise arbitrary freedom to shift the reported point along the line.

For unit direction u and translation t, advance is u dot t. The perpendicular translation component must satisfy (I−R)p=t−advance times u. Adding the perpendicular-point condition makes the solve well defined for a genuine nonzero rotation. The returned point is a spatial coordinate, not a moment vector under an unstated alternative convention.

Check a quarter-turn with axial translation

The default rotation maps x to y and y to minus x, leaving z fixed. Translation is two units along z. The screw axis is therefore the z axis through the origin, angle pi/2, axial advance two and pitch four divided by pi.

A point on that axis is shifted two units along it, while an off-axis point also rotates by a quarter-turn. The axis reconstruction residual compares these relations numerically. Matching only the rotation angle would not establish that the axis location and translation have been extracted correctly.

Treat pure translation as its own case

When the rotation angle is effectively zero, the motion can be pure translation or identity. A nonzero translation determines a direction but does not identify one unique finite rotation axis line. Dividing advance by a zero angle would produce an undefined pitch.

The page reports a separate label and no finite pitch in that case. Identity has neither a preferred translation direction nor a unique axis. A displayed zero direction for identity is a placeholder for that lack of uniqueness, not a claim that the zero vector is a valid unit axis.

Understand angle and axis sign conventions

The rotation angle is chosen in the interval zero through pi. Away from special boundaries, the antisymmetric part of the rotation determines a compatible axis orientation. At a half-turn the axis sign is conventional, and flipping it also flips signed advance and pitch while preserving the same axis line.

External references can use opposite signed-angle conventions or exponential-coordinate vectors rather than an axis point and pitch. Compare the reconstructed transform and units before judging a sign difference. Raw parameter equality is not required when different conventions represent the same rigid motion.

Keep a finite transform separate from a trajectory

One transform gives an endpoint rigid displacement. It does not reveal the actual path, collision avoidance, acceleration or sequence of rotations used to reach that endpoint. Many physical trajectories share the same start-to-end transform and therefore the same finite screw description.

The extraction uses floating-point linear algebra and special handling near zero and pi. Very small rotations can make axis location sensitive to tiny translation changes. Report that conditioning issue rather than reading a distant axis point as a precisely measured mechanical feature merely because its reconstruction residual is small.

A few questions, answered

What units does pitch use?

Length per radian. Full-turn advance would be pitch multiplied by 2π.

Why is pitch undefined for pure translation?

The rotation angle is zero, so advance divided by angle has no finite value.

Which point on the axis is returned?

The point perpendicular to the unit axis direction, which is nearest the origin.

Does this recover the actual motion path?

No. It describes the finite endpoint transform, not its physical trajectory.

Find your calculator

Start typing to explore the library.