Assuming this vector is incident, given a normal, return the reflection
| 760 | |
| 761 | // Assuming this vector is incident, given a normal, return the reflection |
| 762 | inline constexpr v_2d reflect(const v_2d& n) const |
| 763 | { |
| 764 | return (*this) - 2.0 * (this->dot(n) * n); |
| 765 | } |
| 766 | |
| 767 | // Allow 'casting' from other v_2d types |
| 768 | template<class F> |