Skip to main content

3D Math

  • Target: A shared scene from coordinates and distances to ray tests and rotation interpolation
  • Convention: Right-handed orthonormal frame; column vectors; rightmost matrix first; angles in radians unless marked °; lengths in m
  • Record: Assumed exercise inputs; predictions before calculation; calculated answers and optional viewer output in separate columns; no physical measurements

Data​

CaseData
A, B, C(1,1,0), (4,5,0), (1,5,0) m
d=B−A(3,4,0) m
Q, r(2,2,3) m, 2 m
R(t)(2,2,6)+t(0,0,−1), t ≥ 0 m
Sdiag(2,1,1)
RRz(90°)
t(10,0,0) m
  • Convention: x right, y up, z toward the viewer; active rotations; Euler ZYX: Rz(ψ)Ry(θ)Rx(φ); Hamilton quaternion (w,x,y,z), scalar first

Foundations​

Geometry​

Transformations​

Rotations​

  • Orientation: An orientation distinct from position and scale
  • Euler Angles: Three angles, one explicit rotation order
  • Axis-Angle: A rotation around one unit axis
  • Quaternions: Stable rotation composition and interpolation