-
-
Notifications
You must be signed in to change notification settings - Fork 18
point_in_circle
Vašek edited this page Feb 10, 2019
·
3 revisions
Check if a given point is within a given circle
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
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
.
point_in_circle(new Vector2(100, 0), new Vector2(0, 0), 100);
This function returns true.
Back to Raycasting