coord

package
v0.0.0-...-07010e4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DPoint

type DPoint struct {
	Point
	Closest string
}

type DPoints

type DPoints map[Point]DPoint

type Grid

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

func ParseGrid

func ParseGrid(r io.Reader) (*Grid, error)

func (*Grid) CalcDistances

func (g *Grid) CalcDistances()

func (*Grid) CalcSafest

func (g *Grid) CalcSafest(safeDist int)

type Point

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

func ParsePoint

func ParsePoint(id string, s string) (Point, error)

func (Point) Distance

func (p Point) Distance(op Point) int

Jump to

Keyboard shortcuts

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