Overview
Vector Calculator helps you quickly run 2D/3D vector operations, including add/subtract, dot product, cross product, angle, and projection, with real-time updates.
Key Features
- Switch between 2D and 3D calculation modes.
- Enter components for Vector A and Vector B with instant updates.
- Get vector magnitude, vector sum, vector difference, and dot product.
- Compute cross product in 3D mode.
- View angle results in both degrees and radians.
- Check projection of A on B and projection of B on A.
How to Use
- Choose the dimension mode, 2D or 3D.
- Enter component values for Vector A and Vector B.
- Review sum, difference, dot product, and cross product in the result area.
- Check angle and projection in the analysis area.
- Use the copy button when you need to share the output.
Operation Notes
- Vector addition: add each corresponding component.
- Vector subtraction: subtract each corresponding component.
- Dot product: sum of pairwise component multiplication, result is scalar.
- Cross product: 3D only, result is perpendicular to both vectors.
- Vector angle: derived from dot product and magnitudes.
- Vector projection: component of one vector along another vector.
Use Cases
- Linear algebra practice and homework checking.
- Physics vector analysis for force, velocity, and displacement.
- Graphics development for direction and spatial calculations.
- Engineering modeling for vector decomposition and projection.
Notes
- If one vector magnitude is 0, angle and some projection outputs are unavailable.
- In 2D mode, calculation uses x and y components, while z is ignored.
- All calculations run locally in the browser.