Documentation ¶
Index ¶
- func FudgeflakeVertices(spec FudgeflakePlotSpec) []maf.Vec
- func GoldenVertices(spec TerdragonPlotSpec) []maf.Vec
- func Magnify(seg maf.LineSeg, anti bool) [2]maf.LineSeg
- func MagnifyGolden(seg maf.LineSeg, anti bool) [2]maf.LineSeg
- func MagnifyTerdragon(seg maf.LineSeg) [3]maf.LineSeg
- func TerdragonVertices(spec TerdragonPlotSpec) []maf.Vec
- func Vertices(spec PlotSpec) []maf.Vec
- type FudgeflakePlotSpec
- type PlotSpec
- type TerdragonPlotSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FudgeflakeVertices ¶
func FudgeflakeVertices(spec FudgeflakePlotSpec) []maf.Vec
FudgeflakeVertices are the vertices of a Heighway fudgeflake curve.
func GoldenVertices ¶
func GoldenVertices(spec TerdragonPlotSpec) []maf.Vec
GoldenVertices are the vertices of a Heighway golden dragon curve.
func TerdragonVertices ¶
func TerdragonVertices(spec TerdragonPlotSpec) []maf.Vec
TerdragonVertices are the vertices of a Terdragon curve.
Types ¶
type FudgeflakePlotSpec ¶
type FudgeflakePlotSpec struct { // Iterations of the algorithm. Iterations int // Equilateral is the equilateral triangle whose edges are the subject of // the iterative division process. // // The triangle shall be parallel to the Z=0 XY-plane. Equilateral maf.Triangle }
FudgeflakePlotSpec specifies the properties of a Heighway fudgeflake curve.
type PlotSpec ¶
type PlotSpec struct { // Iterations of the algorithm. Iterations int // Reflect the points along the given axis. ReflectX, ReflectY bool // Seg is the line segment to which the iterative division process is // applied. // // Seg shall be parallel to the Z=0 XY-plane. Seg maf.LineSeg }
PlotSpec specifies the properties of a Heighway Dragon curve.
type TerdragonPlotSpec ¶
type TerdragonPlotSpec struct { // Iterations of the algorithm. Iterations int // Seg is the line segment to which the iterative division process is // applied. // // Seg shall be parallel to the Z=0 XY-plane. Seg maf.LineSeg }
TerdragonPlotSpec specifies the properties of a Terdragon curve.
Click to show internal directories.
Click to hide internal directories.