geo

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GeometryInstruction string = "set geometry by string"

Functions

func GeometryFlag

func GeometryFlag(fs *flip.FlagSet, val *string, dflt string)

func GeometryVectorFlag

func GeometryVectorFlag(fs *flip.FlagSet, v *data.Vector, key string)

Types

type Geometry

type Geometry struct {
	Raw              string
	ScaleX, ScaleY   float64
	X, OffsetX       int
	Y, OffsetY       int
	AspectX, AspectY float64
	Area             int
	Gravity          Gravity
	Error            []error
}

func New

func New(s string) *Geometry

type Gravity

type Gravity int
const (
	GravityNo Gravity = iota
	NorthWest
	North
	NorthEast
	West
	Center
	East
	SouthWest
	South
	SouthEast
)

Jump to

Keyboard shortcuts

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