MCPcopy
hub / github.com/tdewolff/canvas / String

Method String

path_intersection_util.go:109–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107}
108
109func (z Intersection) String() string {
110 var extra string
111 if z.Tangent {
112 extra = " Tangent"
113 }
114 if z.Same {
115 extra = " Same"
116 }
117 return fmt.Sprintf("({%v,%v} t={%v,%v} dir={%v°,%v°}%v)", numEps(z.Point.X), numEps(z.Point.Y), numEps(z.T[0]), numEps(z.T[1]), numEps(angleNorm(z.Dir[0])*180.0/math.Pi), numEps(angleNorm(z.Dir[1])*180.0/math.Pi), extra)
118}
119
120type Intersections []Intersection
121

Callers

nothing calls this directly

Calls 2

numEpsTypeAlias · 0.85
angleNormFunction · 0.85

Tested by

no test coverage detected