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
| Case | Data |
|---|---|
| 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 |
| S | diag(2,1,1) |
| R | Rz(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
- Coordinate Spaces: One point, two coordinate frames
- Vectors: Equal displacements from different starting points
- Vector Operations: Combining, reversing and scaling movements
- Magnitude and Direction: A fixed travel distance toward the target
- Dot and Cross Products: Alignment, projection and surface normals
Geometry
- Lines and Rays: Rejecting hits behind a ray or beyond a segment
- Planes: Signed height above the floor
- Circles and Spheres: Sphere surface versus solid-ball containment
- Triangles: A triangle hit and interpolated vertex data
- Bounding Boxes: A fast box around the shared scene
- Geometric Tests: The nearest hit along one ray
Transformations
- Matrices: One matrix for many vector transformations
- Linear Transformations: Shape changes under scale, rotation and shear
- Coordinate Transformations: The same object in local and world coordinates
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