mccoordtool

package module
v0.0.0-...-9f0c3b9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Centroid

type Centroid struct {
	Coord
	Coords
}

func CentroidOfCoords

func CentroidOfCoords(coords ...Coord) (c Centroid)

func (Centroid) Distances

func (c Centroid) Distances() (d []float64)

type Coord

type Coord struct {
	X float64
	Y float64
	Z float64
}

func (Coord) Add

func (c Coord) Add(coord Coord) Coord

func (Coord) AddX

func (c Coord) AddX(x float64) Coord

func (Coord) AddY

func (c Coord) AddY(y float64) Coord

func (Coord) AddZ

func (c Coord) AddZ(z float64) Coord

func (Coord) Nether

func (c Coord) Nether() Coord

func (Coord) String

func (c Coord) String() string

type Coords

type Coords []Coord

func Circle

func Circle(center Coord, diameter float64) (coords Coords)

func (Coords) Len

func (c Coords) Len() int

func (Coords) Less

func (c Coords) Less(i, j int) bool

func (Coords) Swap

func (c Coords) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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