MCPcopy Create free account
hub / github.com/tdewolff/canvas / String

Method String

path_intersection.go:2432–2443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2430)
2431
2432func (rel Relation) String() string {
2433 b := make([]byte, 9)
2434 for i := 0; i < 9; i++ {
2435 if (rel>>i)&1 != 0 {
2436 b[i] = 'T'
2437 } else {
2438 b[i] = 'F'
2439 }
2440 }
2441 b[8] = 'T' // relEE, always true
2442 return string(b)
2443}
2444
2445// Disjoint is the inverse of Intersects.
2446func (rel Relation) Disjoint() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected