MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / str

Method str

olcPixelGameEngine.h:756–759  ·  view source on GitHub ↗

Return this vector as a std::string, of the form "(x,y)"

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected