package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Jan 28, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package sdf defines signed distance functions
-
func Box(x, y, bx, by, bw, bh float64) float64
-
func Circle(x, y, cx, cy, radius float64) float64
-
func Hline(_, y, pos float64) float64
-
func Max(shapes ...float64) float64
-
func Min(shapes ...float64) float64
-
func Repeat(val, dist float64) float64
-
func RoundBox(x, y, bx, by, bw, bh, r float64) float64
-
func Segment(x, y, ax, ay, bx, by float64) float64
-
func Vline(x, _, pos float64) float64
Box computes the signed distance to an axis-aligned box.
Circle computes the signed distance to a circle.
Max returns the maximum of a variable number of args.
Min returns the minimum of a variable number of args.
RoundBox computes the signed distance to an axis-aligned rounded box.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.