Versions in this module Expand all Collapse all v0 v0.5.1 Jan 15, 2023 Changes in this version + var Infinity = math32.Inf(1) + type C2Vector struct + X float32 + Y float32 + func DecodeC2Vector(r io.Reader) (C2Vector, error) + func (c2 C2Vector) Encode(wr io.Writer) error + func (c2 C2Vector) String() string + type C2iVector struct + X int32 + Y int32 + func DecodeC2iVector(r io.Reader) (C2iVector, error) + type C3Vector struct + X float32 + Y float32 + Z float32 + func DecodeC3Vector(r io.Reader) (C3Vector, error) + func (c3 *C3Vector) Dot(oc3 C3Vector) float32 + func (c3 *C3Vector) Multiply(a float32) + func (c3 *C3Vector) Normalize() + func (c3 *C3Vector) SquaredMag() float32 + func (c3 *C3Vector) Sub(oc3 C3Vector) C3Vector + func (c3 C3Vector) C2() C2Vector + func (c3 C3Vector) C4() C4Vector + func (c3 C3Vector) Distance(oc3 C3Vector) float32 + func (c3 C3Vector) Encode(wr io.Writer) error + func (c3 C3Vector) Mag() float32 + type C4Quaternion C4Vector + func (cq *C4Quaternion) Decode(reader io.Reader) (err error) + func (cq *C4Quaternion) DecodePacked(reader io.Reader) error + func (cq *C4Quaternion) EncodePacked(writer io.Writer) (err error) + func (cq *C4Quaternion) Pack() (raw C4QuaternionCompressed) + type C4QuaternionCompressed uint64 + func (c4 *C4QuaternionCompressed) Unpack() C4Quaternion + type C4Vector struct + W float32 + X float32 + Y float32 + Z float32 + func DecodeC4Vector(r io.Reader) (C4Vector, error) + func ParseC4Vector(in string) (C4Vector, error) + func (c4 C4Vector) C2() C2Vector + func (c4 C4Vector) C3() C3Vector + func (c4 C4Vector) Distance(oc4 C4Vector) float32 + func (c4 C4Vector) Encode(wr io.Writer) error + type CAaBox struct + Max C3Vector + Min C3Vector + type CAaSphere struct + Position C3Vector + Radius float32 + func (sphere *CAaSphere) Contains(point C3Vector) bool