You are not logged in.
Pages: 1
///point_in_circle(x,y,ox,oy,radius)
//Returns whether a point (x,y) is inside a circle or not
//
//x - x coordinate of the point to check, real
//y - y coordinate of the point to check, real
//ox - x coordinate of the center point of the circle, real
//oy - y coordinate of the center point of the circle, real
//radius - radius of the circle
//
///http://GMLscripts.com/license
return ((sqr(argument2-argument0) + sqr(argument3-argument1))<=sqr(argument4));
Offline
Thanks but this is a script that already exists.
http://www.gmlscripts.com/script/point_in_circle
Also, please use the "Edit" feature to make corrections to your posts.
Abusing forum power since 1986.
Offline
Pages: 1