Documentation ¶
Index ¶
- Constants
- func BoolsStr(a []bool) string
- func DeltaProps(hist, base []Cube) func(i int) int
- func ExtraProps(hist, base, cur []Cube) func(i int) int
- func IndexProps(index []int, N int) []int
- func Props(base []Cube) func(i int) int
- func SameBools(a, b []bool)
- func SetDeltaProps(base, cur []Cube) func(i int, v int)
- func SetExtraProps(hist, base, cur []Cube) func(i int, v int)
- func SetProps(cur []Cube) func(i int, v int)
- func SortByZ(items []int, get func(i int) int)
- func SortByZCount(items []int, get func(i int) int)
- type Cube
- type Frame
- type Position
- type Rotation
- type State
Constants ¶
View Source
const ( HistorySize = 16 UnitsPerMeter = 512 UnitsPerQuat = 1024 PositionUnit = 1.0 / UnitsPerMeter QuatUnit = 1.0 / UnitsPerQuat )
Variables ¶
This section is empty.
Functions ¶
func DeltaProps ¶
func ExtraProps ¶
func IndexProps ¶
func SetDeltaProps ¶
func SetExtraProps ¶
func SortByZCount ¶
Types ¶
type State ¶
type State struct { History [HistorySize]*Frame FrameIndex int }
Click to show internal directories.
Click to hide internal directories.