Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js point in rect

function PointInRect(px, py, rx, ry, rw, rh) {
	return px >= rx && px <= rx + rw && py >= ry && py <= ry + rh;
}
 
PREVIOUS NEXT
Tagged: #js #point #rect
ADD COMMENT
Topic
Name
5+5 =