Documentation ¶
Index ¶
- Constants
- func CalcDxDyWrapped(dx, dy, xLen, yLen int) (int, int)
- func VtValidate(x, y int) bool
- type Way9Type
- func CalcContactDirWrapped(from, to [2]int, xLen, yLen int) (bool, Way9Type)
- func CalcContactDirWrappedXY(x1, y1, x2, y2, xLen, yLen int) (bool, Way9Type)
- func Call4WayTile(ox, oy int, fn func(int, int) bool) []Way9Type
- func Call8WayTile(ox, oy int, fn func(int, int) bool) []Way9Type
- func ContactDxDy2Way9(dx, dy int) Way9Type
- func RemoteDxDy2Way5(dx, dy int) Way9Type
- func RemoteDxDy2Way9(dx, dy int) Way9Type
- func String2Way9Type(s string) (Way9Type, bool)
- func Vt2Dir(x, y int) Way9Type
- func (dt Way9Type) Add(dt2 Way9Type) Way9Type
- func (e Way9Type) CommentString() string
- func (dt Way9Type) Dx() int
- func (dt Way9Type) DxDy() (int, int)
- func (dt Way9Type) Dy() int
- func (dt Way9Type) InverseX() Way9Type
- func (dt Way9Type) InverseY() Way9Type
- func (dt Way9Type) IsValid() bool
- func (dt Way9Type) Len() float64
- func (dt Way9Type) MulXY(x, y int) (int, int)
- func (dt Way9Type) ReverseDir() Way9Type
- func (e Way9Type) String() string
- func (dt Way9Type) TurnDir(turn int8) Way9Type
Constants ¶
View Source
const ( Center Way9Type = iota // North // NorthEast // East // SouthEast // South // SouthWest // West // NorthWest // Way9Type_Count int = iota )
Variables ¶
This section is empty.
Functions ¶
func VtValidate ¶
Types ¶
type Way9Type ¶
type Way9Type uint8
func CalcContactDirWrapped ¶
iscontact and dir with wrap
func CalcContactDirWrappedXY ¶
func String2Way9Type ¶
func (Way9Type) CommentString ¶
func (Way9Type) ReverseDir ¶
Click to show internal directories.
Click to hide internal directories.