MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / ToString

Method ToString

include/RayCollision.hpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 [[nodiscard]] std::string ToString() const {
66 return TextFormat(
67 "RayCollision(hit=%s, distance=%f, point=(%f, %f, %f), normal=(%f, %f, %f))",
68 hit ? "true" : "false",
69 distance,
70 point.x, point.y, point.z,
71 normal.x, normal.y, normal.z
72 );
73 }
74
75 operator std::string() const { return ToString(); }
76

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected