MCPcopy Create free account
hub / github.com/fogleman/primitive / Valid

Method Valid

primitive/rectangle.go:140–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138}
139
140func (r *RotatedRectangle) Valid() bool {
141 a, b := r.Sx, r.Sy
142 if a < b {
143 a, b = b, a
144 }
145 aspect := float64(a) / float64(b)
146 return aspect <= 5
147}
148
149func (r *RotatedRectangle) Rasterize() []Scanline {
150 w := r.Worker.W

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected