mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
9 lines
142 B
Go
9 lines
142 B
Go
package main
|
|
|
|
func (r *Rectangle) containsGood(x, y int) bool {
|
|
return r.x <= x &&
|
|
r.y <= y &&
|
|
x <= r.x+r.width &&
|
|
y <= r.y+r.height
|
|
}
|