MCPcopy Index your code
hub / github.com/tdewolff/canvas / ContainsLine

Method ContainsLine

util.go:549–551  ·  view source on GitHub ↗
(a, b Point)

Source from the content-addressed store, hash-verified

547}
548
549func (r Rect) ContainsLine(a, b Point) bool {
550 return r.ContainsPoint(a) && r.ContainsPoint(b)
551}
552
553func (r Rect) OverlapsLine(a, b Point) bool {
554 _, _, overlaps, _ := cohenSutherlandLineClip(r, a, b, 0.0)

Callers

nothing calls this directly

Calls 1

ContainsPointMethod · 0.95

Tested by

no test coverage detected