Skip to contents

Check if circle collides with a line created betweeen two points \[p1\] and \[p2\].

Usage

check_collision_circle_line(center, radius, p1, p2)

Arguments

center

A numeric vector of length 2.

radius

A number.

p1

A numeric vector of length 2.

p2

A numeric vector of length 2.

Value

A logical

Note

This function has been auto-generated from the following Raylib function definition:

bool CheckCollisionCircleLine(Vector2 center, float radius, Vector2 p1, Vector2 p2);

Examples

check_collision_circle_line(c(100, 100), 50.0, c(100, 100), c(100, 100))
#> [1] TRUE