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

Function CheckCollisionLines

include/Vector2.hpp:374–377  ·  view source on GitHub ↗

* Check the collision between two lines defined by two points each, returns collision point by reference */

Source from the content-addressed store, hash-verified

372 * Check the collision between two lines defined by two points each, returns collision point by reference
373 */
374 bool
375 CheckCollisionLines(::Vector2 endPos1, ::Vector2 startPos2, ::Vector2 endPos2, ::Vector2* collisionPoint) const {
376 return ::CheckCollisionLines(*this, endPos1, startPos2, endPos2, collisionPoint);
377 }
378
379 /**
380 * Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected