point

package
v0.0.0-...-fcf7183 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distance

func Distance(pt image.Point) int

Distance return the distance of the image.Point compare to 0,0.

Types

type Point

type Point struct {
	image.Point
}

Point helper struct on top of image.Point.

func New

func New() *Point

New return a new Point.

func (*Point) GetDistance

func (pt *Point) GetDistance() int

GetDistance return the distance of the image.Point compare to 0,0.

Jump to

Keyboard shortcuts

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