Invert GMLscripts.com

point_in_circle

NOTE: The GameMaker:Studio function of the same name produces the same results and obsoletes this script.

point_in_circle(px,py,cx,cy,rad)
Returns true if the given test point is within the given circle, false otherwise.
COPY/// point_in_circle(px,py,cx,cy,rad)
//
//  Returns true if the given test point is
//  within the given circle, false otherwise.
//
//      px,py       test point
//      cx,cy       center of the circle
//      rad         radius of the circle
//
/// GMLscripts.com/license
{
    return (point_distance(argument0, argument1, argument2, argument3) <= argument4);
}

Contributors: Leif902

GitHub: View · Commits · Blame · Raw