Skip to contents

Check if point is inside rectangle.

Usage

check_collision_point_rec(point, rec)

Arguments

point

A numeric vector of length 2.

rec

A rectangle.

Value

A logical

Note

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

bool CheckCollisionPointRec(Vector2 point, Rectangle rec);

Examples

check_collision_point_rec(c(100, 100), rectangle(10, 10, 200, 100))
#> [1] TRUE