Documentation ¶
Index ¶
- func DistanceSq(x0, y0, x1, y1 float64) float64
- type Vec2
- func (v Vec2) Add(v2 Vec2) Vec2
- func (v Vec2) Div(v2 Vec2) Vec2
- func (v Vec2) Mul(v2 Vec2) Vec2
- func (v Vec2) MulN(n float64) Vec2
- func (v Vec2) Normalize() Vec2
- func (v Vec2) Rotate(angle float64) Vec2
- func (v Vec2) RotateAroundCenter(center Vec2, angle float64) Vec2
- func (v Vec2) String() string
- func (v Vec2) Sub(v2 Vec2) Vec2
- type Vec3
- func (v Vec3) Add(v2 Vec3) Vec3
- func (v Vec3) AsUHash() uint32
- func (v Vec3) AsUHashXZ() uint16
- func (v Vec3) DistanceTo(v2 Vec3) float64
- func (v Vec3) Floor() Vec3
- func (v Vec3) FromUHash(hash uint32) Vec3
- func (v Vec3) FromUHashXZ(hash uint16) Vec3
- func (v Vec3) Mul(v2 Vec3) Vec3
- func (v Vec3) MulN(n float64) Vec3
- func (v Vec3) Normalize() Vec3
- func (v Vec3) String() string
- func (v Vec3) Sub(v2 Vec3) Vec3
- func (v Vec3) Zero() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistanceSq ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.