MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Inside

Method Inside

utils.go:100–102  ·  view source on GitHub ↗
(rect *sdl.FRect)

Source from the content-addressed store, hash-verified

98}
99
100func (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 {

Callers 15

InsideShapeMethod · 0.95
UpdateMethod · 0.80
UpdateMethod · 0.80
ClickedInRectFunction · 0.80
RawClickedInRectFunction · 0.80
ClickedOutRectFunction · 0.80
UpdateMethod · 0.80
DrawMethod · 0.80
ImmediateIconButtonFunction · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
DrawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected