(rect *sdl.FRect)
| 98 | } |
| 99 | |
| 100 | func (point Vector) Inside(rect *sdl.FRect) bool { |
| 101 | return point.X >= float32(rect.X) && point.X <= float32(rect.X+rect.W) && point.Y >= float32(rect.Y) && point.Y <= float32(rect.Y+rect.H) |
| 102 | } |
| 103 | |
| 104 | // func (point Point) InsideShape(shape *Shape) bool { |
| 105 | // for _, rect := range shape.Rects { |
no outgoing calls
no test coverage detected