Return this vector as a std::string, of the form "(x,y)"
| 338 | |
| 339 | // Return this vector as a std::string, of the form "(x,y)" |
| 340 | inline std::string str() const |
| 341 | { |
| 342 | return std::string("(") + std::to_string(this->x) + "," + std::to_string(this->y) + ")"; |
| 343 | } |
| 344 | |
| 345 | // Assuming this vector is incident, given a normal, return the reflection |
| 346 | inline constexpr v_2d reflect(const v_2d& n) const |