package
Version:
v0.0.9
Opens a new window with list of versions in this module.
Published: Aug 9, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package coord defines types and functions for coordinate conversions.
Btoc converts a coordinate byte to x,y coordinates.
Ctob converts a x,y coordinate with x,y < 16 to a coordinate byte.
X returns the x coordinate of a coordinate byte.
Y returns the y coordinate of a coordinate byte.
type XY struct {
X, Y int
}
XY represents a two dimensional x,y coordinate.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.