Documentation
¶
Index ¶
- Constants
- Variables
- func DrawLineFixPoint(dst draw.Image, from, to fixed.Point26_6, width float64)
- func FixedToFloat(f fixed.Int26_6) float64
- func FloatToFixed(f float64) fixed.Int26_6
- type Binary
- type BinaryGraphy
- type Call
- type DivideGraphy
- type Env
- type Expr
- type Graphy
- type Literal
- type PowGraphy
- type SqrtGraphy
- type TriangleGraphy
- type Unary
- type UnaryGraphy
- type Var
- type VarGraphy
Constants ¶
const DPI = 72.0
Variables ¶
var ( DefaultFont *truetype.Font DefaultColor *image.Uniform )
Functions ¶
func DrawLineFixPoint ¶
func FixedToFloat ¶
func FloatToFixed ¶
Types ¶
type BinaryGraphy ¶
type BinaryGraphy struct {
Op string //"+" "-" "*"
X, Y Graphy
// contains filtered or unexported fields
}
----------------------------------------------------------------------------
type DivideGraphy ¶
----------------------------------------------------------------------------
type Env ¶
---------------------------------------------------------------------------------------------
type Literal ¶
type Literal string
---------------------------------------------------------------------------------------
type SqrtGraphy ¶
type SqrtGraphy struct {
X Graphy
// contains filtered or unexported fields
}
----------------------------------------------------------------------------
type TriangleGraphy ¶
type TriangleGraphy struct {
Op string //sin cos tan arcsin ...
X Graphy
// contains filtered or unexported fields
}
----------------------------------------------------------------------------
type Unary ¶
type Unary struct {
// contains filtered or unexported fields
}
--------------------------------------------------------------------------------------
type UnaryGraphy ¶
----------------------------------------------------------------------------
type Var ¶
type Var string
--------------------------------------------------------------------------------------