Skip to content

point_in_circle

Vašek edited this page Feb 10, 2019 · 3 revisions

point_in_circle

Check if a given point is within a given circle

Syntax:

point_in_circle(point, pos, rad)
Argument Description
Vector2 point Position of the given point
Vector2 pos Position of the center of the given circle
double rad Radius of the circle

Returns: bool

Description:

This function checks if the point on position point is within a given circle. The circle is determined by center position pos and by the radius rad.

Example:

point_in_circle(new Vector2(100, 0), new Vector2(0, 0), 100);

This function returns true.

Back to Raycasting

Clone this wiki locally