Documentation ¶
Index ¶
- Variables
- type Angle
- type Boxd
- type Boxf
- type Boxi
- type Dataset
- type Direction
- type Rectd
- type Rectf
- type Recti
- type Vec2d
- type Vec2f
- type Vec2i
- type Vec3d
- func (v Vec3d) Add(add Vec3d) Vec3d
- func (v Vec3d) Addf(add Vec3f) Vec3d
- func (v Vec3d) Addv(x, y, z float64) Vec3d
- func (v Vec3d) Ceiling() Vec3i
- func (v1 Vec3d) Cross(v2 Vec3d) Vec3d
- func (v1 Vec3d) Dot(v2 Vec3d) float64
- func (v Vec3d) Floor() Vec3i
- func (v Vec3d) Length() float64
- func (v Vec3d) Multiply(mult float64) Vec3d
- func (v Vec3d) Negative() Vec3d
- func (v Vec3d) Normalize() Vec3d
- func (v Vec3d) ToFloat32() Vec3f
- type Vec3f
- type Vec3i
- type Vec4d
- type Vec4f
- type Vec4i
Constants ¶
This section is empty.
Variables ¶
View Source
var DirectionVecd = [6]Vec3d{ XPlus: {1, 0, 0}, XMinus: {-1, 0, 0}, YPlus: {0, 1, 0}, YMinus: {0, -1, 0}, ZPlus: {0, 0, 1}, ZMinus: {0, 0, -1}, }
Functions ¶
This section is empty.
Types ¶
type Angle ¶
type Angle float32
Angle wraps a angle in the form of radian float32.
Its value lies strictly in [0, 2Pi).
type Dataset ¶
type Dataset map[string]interface{}
Dataset describes arbitrary data stored in String-Interface{} pairs. This is the major way how complicated data is stored in blocks and entities.
The empty interface should only hold these 4 types:
- int
- float64
- bool
- string
Click to show internal directories.
Click to hide internal directories.