* Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold] */
| 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 | } |
| 385 | protected: |
| 386 | void set(const ::Vector2& vec) { |
| 387 | x = vec.x; |
nothing calls this directly
no outgoing calls
no test coverage detected