Documentation ¶
Overview ¶
Package rasterize provides different functions for several use cases to rasterize a triangle.
Index ¶
- func DDAPolygon(polygon geom.Polygon, pixel func(x, y int))
- func DDAPolygonBlocks(polygon geom.Polygon, blockSize int, line func(x0, x1, y int), ...)
- func DDATriangle(triangle geom.Triangle, pixel func(x, y int))
- func DDATriangleBlocks(triangle geom.Triangle, blockSize int, line func(x0, x1, y int), ...)
- func DDATriangleLines(triangle geom.Triangle, line func(x0, x1, y int))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DDAPolygon ¶ added in v1.1.7
func DDAPolygonBlocks ¶ added in v1.1.9
func DDATriangle ¶
DDATriangle calls function pixel for each pixel a geom.Triangle covers.
func DDATriangleBlocks ¶
func DDATriangleBlocks(triangle geom.Triangle, blockSize int, line func(x0, x1, y int), block func(x, y int))
DDATriangleBlocks calls function line for each line a triangle covers, and calls function block for each block the triangle covers.
func DDATriangleLines ¶
DDATriangleLines calls function line for each horizontal line a geom.Triangle covers using a digital differential analyzing algorithm.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.