Return this vector as a std::string, of the form "(x,y)"
| 754 | |
| 755 | // Return this vector as a std::string, of the form "(x,y)" |
| 756 | inline std::string str() const |
| 757 | { |
| 758 | return std::string("(") + std::to_string(this->x) + "," + std::to_string(this->y) + ")"; |
| 759 | } |
| 760 | |
| 761 | // Assuming this vector is incident, given a normal, return the reflection |
| 762 | inline constexpr v_2d reflect(const v_2d& n) const |