bigbase

package
v0.0.0-...-37f3e00 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigComplexEq

func BigComplexEq(a *BigComplex, b *BigComplex) bool

func BigEq

func BigEq(a *big.Float, b *big.Float) bool

func MakeBigFloat

func MakeBigFloat(f float64, prec uint) big.Float

Create a new Float, supplying a precision

Types

type BigBaseNumerics

type BigBaseNumerics struct {
	base.BaseNumerics

	RealMin big.Float
	RealMax big.Float
	ImagMin big.Float
	ImagMax big.Float

	SqrtDivergeLimit big.Float
	IterateLimit     uint8

	Runit big.Float
	Iunit big.Float

	Precision uint
}

Basis for all big.Float numerics

func (*BigBaseNumerics) Escape

func (bbn *BigBaseNumerics) Escape(c *BigComplex) BigEscapeValue

func (*BigBaseNumerics) MakeBigComplex

func (bbn *BigBaseNumerics) MakeBigComplex(r, i float64) BigComplex

func (*BigBaseNumerics) MakeBigFloat

func (bbn *BigBaseNumerics) MakeBigFloat(x float64) big.Float

func (*BigBaseNumerics) MakeMember

func (bbn *BigBaseNumerics) MakeMember(c *BigComplex) BigEscapeValue

func (*BigBaseNumerics) PixelSize

func (bbn *BigBaseNumerics) PixelSize() (big.Float, big.Float)

Size on the plane of 1px

func (*BigBaseNumerics) PixelToPlane

func (bbn *BigBaseNumerics) PixelToPlane(i, j int) BigComplex

func (*BigBaseNumerics) PlaneToPixel

func (bbn *BigBaseNumerics) PlaneToPixel(c *BigComplex) (rx int, ry int)

func (*BigBaseNumerics) SubImage

func (bbn *BigBaseNumerics) SubImage(rect image.Rectangle)

type BigComplex

type BigComplex struct {
	R big.Float
	I big.Float
}

func MakeBigComplex

func MakeBigComplex(real float64, imag float64, prec uint) BigComplex

func (*BigComplex) Add

func (c *BigComplex) Add(q *BigComplex, u *BigComplex)

func (*BigComplex) Imag

func (c *BigComplex) Imag() *big.Float

func (*BigComplex) Real

func (c *BigComplex) Real() *big.Float

type BigCoordProvider

type BigCoordProvider interface {
	BigUserCoords() (*BigComplex, *BigComplex)
	Precision() uint
}

type BigEscapeValue

type BigEscapeValue struct {
	base.EscapeValue
	C                *BigComplex
	SqrtDivergeLimit *big.Float
	Prec             uint
}

func (*BigEscapeValue) Mandelbrot

func (member *BigEscapeValue) Mandelbrot(iterateLimit uint8)

type DbgC

type DbgC BigComplex

DbgC is a BigComplex with an easy to grok string representation

func (DbgC) String

func (dc DbgC) String() string

type DbgF

type DbgF big.Float

DbgF is a big.Float with an easy to grok string representation

func (DbgF) String

func (df DbgF) String() string

type MockBigCoordProvider

type MockBigCoordProvider struct {
	TBigUserCoords bool
	TPrecision     bool

	UserMin BigComplex
	UserMax BigComplex
	Prec    uint
}

func (*MockBigCoordProvider) BigUserCoords

func (mbcp *MockBigCoordProvider) BigUserCoords() (*BigComplex, *BigComplex)

func (*MockBigCoordProvider) Precision

func (mbcp *MockBigCoordProvider) Precision() uint

type MockRenderApplication

type MockRenderApplication struct {
	base.MockRenderApplication
	MockBigCoordProvider
}

type RenderApplication

type RenderApplication interface {
	base.RenderApplication
	BigCoordProvider
}

type UnitQuery

type UnitQuery struct {
	// contains filtered or unexported fields
}

func (UnitQuery) PixelUnits

func (uq UnitQuery) PixelUnits() (big.Float, big.Float)

Jump to

Keyboard shortcuts

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