MCPcopy Index your code
hub / github.com/fogleman/primitive / cross3

Function cross3

primitive/polygon.go:103–109  ·  view source on GitHub ↗
(x1, y1, x2, y2, x3, y3 float64)

Source from the content-addressed store, hash-verified

101}
102
103func 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
111func (p *Polygon) Rasterize() []Scanline {
112 var path raster.Path

Callers 1

ValidMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…