Documentation ¶
Overview ¶
Index ¶
- Variables
- func CubeDistance(a Cube, b Cube) float64
- func ListDirection(source, amount int, includeSelf bool, mode ListDirectionMode) (result []int)
- type Cube
- func CubeAdd(a Cube, b Cube) Cube
- func CubeDirection(direction int) Cube
- func CubeNeighbor(a Cube, direction int) Cube
- func CubeNeighbors(cube Cube) []Cube
- func CubeRing(center Cube, radius int) []Cube
- func CubeRound(cube Cube) Cube
- func CubeScale(a Cube, k int) Cube
- func CubeSpiral(center Cube, radius int) []Cube
- func Hexa2Cube(hexa Hexa) Cube
- func Pixel2Cube(point Point, size float64) Cube
- type Hexa
- type ListDirectionMode
- type Point
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ListDirection ¶
func ListDirection(source, amount int, includeSelf bool, mode ListDirectionMode) (result []int)
获取源方向[source]周围的方向集合
Types ¶
type Cube ¶
/ 六边形坐标系-立体
type Hexa ¶
/ 六边形坐标系-行列
type ListDirectionMode ¶
type ListDirectionMode int
const ( ListDirectionMode_左右 ListDirectionMode = iota + 1 ListDirectionMode_右左 ListDirectionMode_顺时针 ListDirectionMode_逆时针 )
Click to show internal directories.
Click to hide internal directories.