This example extends the Vector2 and Vector3 classes from theĀ 2D and 3D vector normalization and angle calculation in C++ example. The formulas for distance calculation in 2D and 3D are listed below.

### Advertisement

### Categories

Handy snippets of code

This example extends the Vector2 and Vector3 classes from theĀ 2D and 3D vector normalization and angle calculation in C++ example. The formulas for distance calculation in 2D and 3D are listed below.

Posted in C++ Also tagged 2d, 3d, c++, distance, gaming, graphics, programming, vector Leave a comment