Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Area ¶
type Area struct {
// contains filtered or unexported fields
}
Area encapsulates a hit testing region.
func (*Area) Add ¶
func (a *Area) Add(min, max Point, obj TestableObj)
Add inserts the given object into the hit testing area.
func (*Area) Delete ¶ added in v0.3.0
func (a *Area) Delete(obj TestableObj)
Delete removes an object from the hit testing arena.
func (*Area) Test ¶
func (a *Area) Test(p Point) TestableObj
Test computes the topmost object which intersects the given point.
type TestableObj ¶
Click to show internal directories.
Click to hide internal directories.