Returns normalised version of vector
| 669 | |
| 670 | // Returns normalised version of vector |
| 671 | inline v_2d norm() const |
| 672 | { |
| 673 | auto r = 1 / mag(); |
| 674 | return v_2d(x * r, y * r); |
| 675 | } |
| 676 | |
| 677 | // Returns vector at 90 degrees to this one |
| 678 | inline constexpr v_2d perp() const |