boundingbox

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BB

type BB interface {
	Width() float64
	Height() float64
	Left() float64
	Top() float64
	Right() float64
	Bottom() float64

	Translate(dx float64, dy float64) BB
	Scale(sx float64, sy float64) BB

	Dump() string
}

func Merge

func Merge(bbs ...BB) BB

func NewBB

func NewBB(xMin, yMin, xMax, yMax float64) BB

type BBData

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

func (*BBData) Bottom

func (bb *BBData) Bottom() float64

func (*BBData) Dump

func (bb *BBData) Dump() string

func (*BBData) Height

func (bb *BBData) Height() float64

func (*BBData) Left

func (bb *BBData) Left() float64

func (*BBData) Right

func (bb *BBData) Right() float64

func (*BBData) Scale

func (bb *BBData) Scale(sx, sy float64) BB

func (*BBData) Top

func (bb *BBData) Top() float64

func (*BBData) Translate

func (bb *BBData) Translate(dx, dy float64) BB

func (*BBData) Width

func (bb *BBData) Width() float64

Jump to

Keyboard shortcuts

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