Skip to contents

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

Usage

check_collision_lines(
  start_pos_1,
  end_pos_1,
  start_pos_2,
  end_pos_2,
  collision_point
)

Arguments

start_pos_1

A numeric vector of length 2.

end_pos_1

A numeric vector of length 2.

start_pos_2

A numeric vector of length 2.

end_pos_2

A numeric vector of length 2.

collision_point

A numeric vector of length 2.

Value

A logical

Note

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

bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint);