Comprehensive vector operations and analysis for 2D and 3D vectors
Vector addition is commutative (A⃗ + B⃗ = B⃗ + A⃗) and associative ((A⃗ + B⃗) + C⃗ = A⃗ + (B⃗ + C⃗)). Geometrically, it follows the parallelogram rule.
Dot Product: Results in a scalar. Zero when vectors are perpendicular.
Cross Product: Results in a vector perpendicular to both input vectors (3D only).
Vector projections are used in physics for force components, computer graphics for lighting calculations, and data analysis for principal component analysis.