Skip to contents

Check if point is inside a triangle.

Usage

check_collision_point_triangle(point, p1, p2, p3)

Arguments

point

A numeric vector of length 2.

p1

A numeric vector of length 2.

p2

A numeric vector of length 2.

p3

A numeric vector of length 2.

Value

A logical

Note

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

bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3);

Examples

check_collision_point_triangle(c(100, 100), c(100, 100), c(100, 100), c(100, 100))
#> [1] FALSE