MCPcopy Index your code
hub / github.com/EngoEngine/engo / Within

Method Within

math.go:165–167  ·  view source on GitHub ↗

Within reports whether the point is contained within the given container.

(c Container)

Source from the content-addressed store, hash-verified

163
164// Within reports whether the point is contained within the given container.
165func (p Point) Within(c Container) bool {
166 return c.Contains(p)
167}
168
169// Set sets the matrix to the given float slice and returns the matrix. The float
170// slice must have at least 9 elements. If the float slie contains more than 9 elements,

Callers 1

TestPointWithinFunction · 0.80

Calls 1

ContainsMethod · 0.65

Tested by 1

TestPointWithinFunction · 0.64