Game Maker Games, Articles, Tutorials & More

Game Maker Network


Howdy, Guest! Please sign in or register an account.

Print

point_in_circle

By Daniel · December 31, 2008

Tests whether the point (x, y) lies inside a circle with vertex (xv, yv) and radius r

/* point_in_circle(x, y, xv, yv, r)
 *
 * Tests whether the point (x, y) lies inside a circle with vertex
 * (xv, yv) and radius r
 */

return point_distance(argument0, argument1, argument2, argument3) < argument4;

Categories: Geometry

Comments

There are no comments to display.

Post a Comment

You must be signed in to post comments.

Advertisement