(x1, y1, x2, y2, x3, y3 float64)
| 101 | } |
| 102 | |
| 103 | func cross3(x1, y1, x2, y2, x3, y3 float64) float64 { |
| 104 | dx1 := x2 - x1 |
| 105 | dy1 := y2 - y1 |
| 106 | dx2 := x3 - x2 |
| 107 | dy2 := y3 - y2 |
| 108 | return dx1*dy2 - dy1*dx2 |
| 109 | } |
| 110 | |
| 111 | func (p *Polygon) Rasterize() []Scanline { |
| 112 | var path raster.Path |
no outgoing calls
no test coverage detected
searching dependent graphs…