Dot and Cross Products
- Situation: Alignment, projection and surface normals
- Target: Dot product · Projection · Cross product
- Convention: Right-handed orthonormal frame; column vectors; rightmost matrix first; angles in radians unless marked °; lengths in m · Overview
Core concepts
- Dot product: scalar a·b=Σaibi=‖a‖‖b‖cosθ; positive/zero/negative for acute/perpendicular/obtuse nonzero vectors
-
Projection: onto nonzero b, (a·b)/(b·b) times b; residual perpendicular to b; unit-axis scalar projection a·b̂
-
Cross product: perpendicular vector in a right-handed frame; x×y=z, swapped order reversing sign
-
Area: cross magnitude as parallelogram area, half as triangle area; collinear edges giving zero normal
-
Angle: nonzero inputs required; rounded cosine clamped to [−1,1] before arccos; displacement products in m²
Worked example
Shared edges: d=B−A=(3,4,0), e=C−A=(0,4,0) m; d·e=16 m², d×e=(0,0,12) m²; angle≈36.87°, triangle area6 m²
Practice
- Preparation → prediction → calculation: Reuse d,e and unit directions; predict signs under reversal; calculate dot, cross, angle and projection; retain unit normal (0,0,1) for the plane
- Record: Assumed exercise inputs; predictions before calculation; calculated answers and optional viewer output in separate columns; no physical measurements
| Case | Prediction | Calculated result | Viewer output (optional) |
|---|---|---|---|
- Optional extension: Field-of-view test using unit forward f and unit target direction u: f·u≥cosα for half-angle α
Exercises
- Problem:
- Problem:
- Problem:
- Problem: Cross-product normalization for parallel nonzero vectors
Answers and checks
- Answer:
- Answer:
- Answer:
- Answer: Undefined; cross product zero
Connections
- Previous: Magnitude and Direction
- Next: Lines and Rays