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

Function CheckCollisionPointLine

include/Vector2.hpp:382–384  ·  view source on GitHub ↗

* Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold] */

Source from the content-addressed store, hash-verified

380 * Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
381 */
382 RLCPP_NODISCARD bool CheckCollisionPointLine(::Vector2 p1, ::Vector2 p2, int threshold = 1) const {
383 return ::CheckCollisionPointLine(*this, p1, p2, threshold);
384 }
385protected:
386 void set(const ::Vector2& vec) {
387 x = vec.x;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected