surface

package
v0.0.0-...-d5d099b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EggBox

func EggBox(x, y float64) float64

EggBox is the function for the egg-box.

func MonkeySaddle

func MonkeySaddle(x, y float64) float64

MonkeySaddle is the function for a monkey-saddle.

func Original

func Original(x, y float64) float64

Original is the function for the original water-drop.

func Paper

func Paper(x, y float64) float64

Paper is the function for a sheet of paper.

func Render

func Render(w io.Writer, shape Surface)

Render takes an io.Writer and renders and SVG

func Saddle

func Saddle(x, y float64) float64

Saddle is the function for a saddle.

Types

type Surface

type Surface func(float64, float64) float64

Surface is a function that takes an x, y coordinate and returns the corresponding z coordinate.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL