Versions in this module Expand all Collapse all v0 v0.8.0 Jul 19, 2026 v0.7.0 Jul 18, 2026 Changes in this version + func BoxCount(points []Point2D, boxSize float64) int + func BoxCountingDimension(points []Point2D, boxSizes []float64) float64 + func BoxCountingDimensionFromCounts(boxSizes, counts []float64) float64 + func FitLine(xs, ys []float64) (slope, intercept float64) + func FitSlope(xs, ys []float64) float64 + func HausdorffDimensionSelfSimilar(n int, scale float64) float64 + func InJuliaSet(z, c complex128, maxIter int) bool + func InMainCardioid(c complex128) bool + func InMandelbrotSet(c complex128, maxIter int) bool + func InPeriod2Bulb(c complex128) bool + func JuliaSmooth(z, c complex128, maxIter int, bailout float64) float64 + func MandelbrotSmooth(c complex128, maxIter int, bailout float64) float64 + func Orbit(z0, c complex128, n int) []complex128 + type AffineMap struct + A float64 + B float64 + C float64 + D float64 + E float64 + F float64 + func NewAffineMap(a, b, c, d, e, f float64) AffineMap + func (m AffineMap) Apply(p Point2D) Point2D + type EscapeResult struct + Escaped bool + FinalZ complex128 + Iterations int + func JuliaEscape(z, c complex128, maxIter int, bailout float64) EscapeResult + func MandelbrotEscape(c complex128, maxIter int, bailout float64) EscapeResult + func (r EscapeResult) Smooth(bailout float64) float64 + type Grid struct + Data []float64 + Height int + Width int + func JuliaGrid(c complex128, v Viewport, width, height, maxIter int, bailout float64) *Grid + func MandelbrotGrid(v Viewport, width, height, maxIter int, bailout float64) *Grid + func NewGrid(width, height int) *Grid + func (g *Grid) At(x, y int) float64 + func (g *Grid) Clone() *Grid + func (g *Grid) CountFinite() int + func (g *Grid) Max() float64 + func (g *Grid) Mean() float64 + func (g *Grid) Min() float64 + func (g *Grid) MinMax() (min, max float64) + func (g *Grid) Normalize() *Grid + func (g *Grid) Row(y int) []float64 + func (g *Grid) Set(x, y int, v float64) + type IFS struct + Maps []AffineMap + Weights []float64 + func BarnsleyFern() IFS + func SierpinskiCarpetIFS() IFS + func SierpinskiTriangleIFS() IFS + func (s IFS) ChaosGame(n int, seed int64) []Point2D + func (s IFS) ChaosGameFrom(start Point2D, n, transient int, seed int64) []Point2D + type Interval struct + End float64 + Start float64 + func CantorSet(start, end float64, iterations int) []Interval + func (iv Interval) Length() float64 + type LSystem struct + Axiom string + Rules map[rune]string + func DragonLSystem() LSystem + func KochLSystem() LSystem + func NewLSystem(axiom string, rules map[rune]string) LSystem + func PlantLSystem() LSystem + func SierpinskiLSystem() LSystem + func (l LSystem) Expand(iterations int) string + func (l LSystem) Step(s string) string + type Point2D struct + X float64 + Y float64 + func BoundingBox(pts []Point2D) (min, max Point2D) + func KochCurve(p0, p1 Point2D, iterations int) []Point2D + func KochSnowflake(center Point2D, radius float64, iterations int) []Point2D + func TurtlePath(commands string, cfg TurtleConfig) []Point2D + func (p Point2D) Add(q Point2D) Point2D + func (p Point2D) Dist(q Point2D) float64 + func (p Point2D) Lerp(q Point2D, t float64) Point2D + func (p Point2D) Midpoint(q Point2D) Point2D + func (p Point2D) Norm() float64 + func (p Point2D) Rotate(angle float64) Point2D + func (p Point2D) Scale(s float64) Point2D + func (p Point2D) Sub(q Point2D) Point2D + type Segment struct + X0 float64 + X1 float64 + Y0 float64 + Y1 float64 + func Turtle(commands string, cfg TurtleConfig) []Segment + type Triangle struct + A Point2D + B Point2D + C Point2D + func SierpinskiTriangle(a, b, c Point2D, depth int) []Triangle + type TurtleConfig struct + AngleDeg float64 + Start Point2D + StartAngleDeg float64 + Step float64 + type TurtleState struct + HeadDeg float64 + Pos Point2D + type Viewport struct + XMax float64 + XMin float64 + YMax float64 + YMin float64 + func NewViewport(centerRe, centerIm, radius float64) Viewport + func (v Viewport) Aspect() float64 + func (v Viewport) Center() complex128 + func (v Viewport) PixelToComplex(px, py, width, height int) complex128 + func (v Viewport) SpanX() float64 + func (v Viewport) SpanY() float64 + func (v Viewport) Zoom(factor float64) Viewport