Returns magnitude of vector
| 657 | |
| 658 | // Returns magnitude of vector |
| 659 | inline auto mag() const |
| 660 | { |
| 661 | return std::sqrt(x * x + y * y); |
| 662 | } |
| 663 | |
| 664 | // Returns magnitude squared of vector (useful for fast comparisons) |
| 665 | inline constexpr T mag2() const |
no outgoing calls
no test coverage detected