Documentation ¶
Index ¶
- type Quaternion
- func (v *Quaternion) Add(v1 Quaternion) *Quaternion
- func (v *Quaternion) AddC(c float32) *Quaternion
- func (v *Quaternion) Axis() Vector
- func (v *Quaternion) Clamp(min, max Quaternion) *Quaternion
- func (v *Quaternion) Clone() *Quaternion
- func (v *Quaternion) Conjugate() *Quaternion
- func (v *Quaternion) CopyFrom(start int, v1 Vector) *Quaternion
- func (v *Quaternion) CopyTo(start int, v1 Vector) Vector
- func (v *Quaternion) Distance(v1 Quaternion) float32
- func (v *Quaternion) DistanceSqr(v1 Quaternion) float32
- func (v *Quaternion) DivC(c float32) *Quaternion
- func (v *Quaternion) DivCAdd(c float32, v1 Quaternion) *Quaternion
- func (v *Quaternion) DivCSub(c float32, v1 Quaternion) *Quaternion
- func (v *Quaternion) Dot(v1 Quaternion) float32
- func (v *Quaternion) FillC(c float32) *Quaternion
- func (v *Quaternion) Interpolate(v1 Quaternion, t float32) *Quaternion
- func (v *Quaternion) Magnitude() float32
- func (v *Quaternion) MulC(c float32) *Quaternion
- func (v *Quaternion) MulCAdd(c float32, v1 Quaternion) *Quaternion
- func (v *Quaternion) MulCSub(c float32, v1 Quaternion) *Quaternion
- func (v *Quaternion) Multiply(v1 Quaternion) *Quaternion
- func (v *Quaternion) Neg() *Quaternion
- func (v *Quaternion) Normal() *Quaternion
- func (v *Quaternion) NormalFast() *Quaternion
- func (v *Quaternion) Pitch() float32
- func (a *Quaternion) Product(b Quaternion) *Quaternion
- func (v *Quaternion) Reflect(n Quaternion) *Quaternion
- func (v *Quaternion) Refract(n Quaternion, ni, nt float32) (*Quaternion, bool)
- func (v *Quaternion) Roll() float32
- func (v *Quaternion) Slerp(v1 Quaternion, time, spin float32) *Quaternion
- func (v *Quaternion) SlerpLong(v1 Quaternion, time, spin float32) *Quaternion
- func (v *Quaternion) Slice(start, end int) Vector
- func (v *Quaternion) Sub(v1 Quaternion) *Quaternion
- func (v *Quaternion) SubC(c float32) *Quaternion
- func (v *Quaternion) Sum() float32
- func (v *Quaternion) SumSqr() float32
- func (v *Quaternion) Theta() float32
- func (v *Quaternion) Vector() Vector
- func (v *Quaternion) XYZ() (float32, float32, float32)
- func (v *Quaternion) XYZW() (float32, float32, float32, float32)
- func (v *Quaternion) Yaw() float32
- type Vector
- func (v Vector) Add(v1 Vector) Vector
- func (v Vector) AddC(c float32) Vector
- func (v Vector) Axis() Vector
- func (v Vector) Clamp(min, max Vector) Vector
- func (v Vector) Clone() Vector
- func (v Vector) Conjugate() Vector
- func (v Vector) CopyFrom(start int, v1 Vector) Vector
- func (v Vector) CopyTo(start int, v1 Vector) Vector
- func (v Vector) Cross(v1 Vector) Vector
- func (v Vector) Distance(v1 Vector) float32
- func (v Vector) DistanceSqr(v1 Vector) float32
- func (v Vector) DivC(c float32) Vector
- func (v Vector) DivCAdd(c float32, v1 Vector) Vector
- func (v Vector) DivCSub(c float32, v1 Vector) Vector
- func (v Vector) Dot(v1 Vector) float32
- func (v Vector) FillC(c float32) Vector
- func (v Vector) Interpolate(v1 Vector, t float32) Vector
- func (v Vector) Magnitude() float32
- func (v Vector) MulC(c float32) Vector
- func (v Vector) MulCAdd(c float32, v1 Vector) Vector
- func (v Vector) MulCSub(c float32, v1 Vector) Vector
- func (v Vector) Multiply(v1 Vector) Vector
- func (v Vector) Neg() Vector
- func (v Vector) Normal() Vector
- func (v Vector) NormalFast() Vector
- func (v Vector) Pitch() float32
- func (a Vector) Product(b Quaternion) Vector
- func (v Vector) Reflect(n Vector) Vector
- func (v Vector) Refract2D(n Vector, ni, nt float32) (Vector, bool)
- func (v Vector) Refract3D(n Vector, ni, nt float32) (Vector, bool)
- func (v Vector) Roll() float32
- func (v Vector) Slerp(v1 Vector, time, spin float32) Vector
- func (v Vector) SlerpLong(v1 Vector, time, spin float32) Vector
- func (v Vector) Slice(start, end int) Vector
- func (v Vector) Sub(v1 Vector) Vector
- func (v Vector) SubC(c float32) Vector
- func (v Vector) Sum() float32
- func (v Vector) SumSqr() float32
- func (v Vector) Theta() float32
- func (v Vector) XY() (float32, float32)
- func (v Vector) XYZ() (float32, float32, float32)
- func (v Vector) XYZW() (float32, float32, float32, float32)
- func (v Vector) Yaw() float32
- type Vector2D
- func (v *Vector2D) Add(v1 Vector2D) *Vector2D
- func (v *Vector2D) AddC(c float32) *Vector2D
- func (v *Vector2D) Clamp(min, max Vector2D) *Vector2D
- func (v *Vector2D) Clone() *Vector2D
- func (v *Vector2D) CopyFrom(start int, v1 Vector) *Vector2D
- func (v *Vector2D) CopyTo(start int, v1 Vector) Vector
- func (v *Vector2D) Distance(v1 Vector2D) float32
- func (v *Vector2D) DistanceSqr(v1 Vector2D) float32
- func (v *Vector2D) DivC(c float32) *Vector2D
- func (v *Vector2D) DivCAdd(c float32, v1 Vector2D) *Vector2D
- func (v *Vector2D) DivCSub(c float32, v1 Vector2D) *Vector2D
- func (v *Vector2D) Dot(v1 Vector2D) float32
- func (v *Vector2D) FillC(c float32) *Vector2D
- func (v *Vector2D) Interpolate(v1 Vector2D, t float32) *Vector2D
- func (v *Vector2D) Magnitude() float32
- func (v *Vector2D) MulC(c float32) *Vector2D
- func (v *Vector2D) MulCAdd(c float32, v1 Vector2D) *Vector2D
- func (v *Vector2D) MulCSub(c float32, v1 Vector2D) *Vector2D
- func (v *Vector2D) Multiply(v1 Vector2D) *Vector2D
- func (v *Vector2D) Neg() *Vector2D
- func (v *Vector2D) Normal() *Vector2D
- func (v *Vector2D) NormalFast() *Vector2D
- func (v *Vector2D) Reflect(n Vector2D) *Vector2D
- func (v *Vector2D) Refract(n Vector2D, ni, nt float32) (*Vector2D, bool)
- func (v *Vector2D) Slice(start, end int) Vector
- func (v *Vector2D) Sub(v1 Vector2D) *Vector2D
- func (v *Vector2D) SubC(c float32) *Vector2D
- func (v *Vector2D) Sum() float32
- func (v *Vector2D) SumSqr() float32
- func (v *Vector2D) Vector() Vector
- func (v *Vector2D) XY() (float32, float32)
- type Vector3D
- func (v *Vector3D) Add(v1 Vector3D) *Vector3D
- func (v *Vector3D) AddC(c float32) *Vector3D
- func (v *Vector3D) Clamp(min, max Vector3D) *Vector3D
- func (v *Vector3D) Clone() *Vector3D
- func (v *Vector3D) CopyFrom(start int, v1 Vector) *Vector3D
- func (v *Vector3D) CopyTo(start int, v1 Vector) Vector
- func (v *Vector3D) Cross(v1 Vector3D) *Vector3D
- func (v *Vector3D) Distance(v1 Vector3D) float32
- func (v *Vector3D) DistanceSqr(v1 Vector3D) float32
- func (v *Vector3D) DivC(c float32) *Vector3D
- func (v *Vector3D) DivCAdd(c float32, v1 Vector3D) *Vector3D
- func (v *Vector3D) DivCSub(c float32, v1 Vector3D) *Vector3D
- func (v *Vector3D) Dot(v1 Vector3D) float32
- func (v *Vector3D) FillC(c float32) *Vector3D
- func (v *Vector3D) Interpolate(v1 Vector3D, t float32) *Vector3D
- func (v *Vector3D) Magnitude() float32
- func (v *Vector3D) MulC(c float32) *Vector3D
- func (v *Vector3D) MulCAdd(c float32, v1 Vector3D) *Vector3D
- func (v *Vector3D) MulCSub(c float32, v1 Vector3D) *Vector3D
- func (v *Vector3D) Multiply(v1 Vector3D) *Vector3D
- func (v *Vector3D) Neg() *Vector3D
- func (v *Vector3D) Normal() *Vector3D
- func (v *Vector3D) NormalFast() *Vector3D
- func (v *Vector3D) Reflect(n Vector3D) *Vector3D
- func (v *Vector3D) Refract(n Vector3D, ni, nt float32) (*Vector3D, bool)
- func (v *Vector3D) Slice(start, end int) Vector
- func (v *Vector3D) Sub(v1 Vector3D) *Vector3D
- func (v *Vector3D) SubC(c float32) *Vector3D
- func (v *Vector3D) Sum() float32
- func (v *Vector3D) SumSqr() float32
- func (v *Vector3D) Vector() Vector
- func (v *Vector3D) XYZ() (float32, float32, float32)
- type Vector4D
- func (v *Vector4D) Add(v1 Vector4D) *Vector4D
- func (v *Vector4D) AddC(c float32) *Vector4D
- func (v *Vector4D) Axis() Vector
- func (v *Vector4D) Clamp(min, max Vector4D) *Vector4D
- func (v *Vector4D) Clone() *Vector4D
- func (v *Vector4D) Conjugate() *Vector4D
- func (v *Vector4D) CopyFrom(start int, v1 Vector) *Vector4D
- func (v *Vector4D) CopyTo(start int, v1 Vector) Vector
- func (v *Vector4D) Distance(v1 Vector4D) float32
- func (v *Vector4D) DistanceSqr(v1 Vector4D) float32
- func (v *Vector4D) DivC(c float32) *Vector4D
- func (v *Vector4D) DivCAdd(c float32, v1 Vector4D) *Vector4D
- func (v *Vector4D) DivCSub(c float32, v1 Vector4D) *Vector4D
- func (v *Vector4D) Dot(v1 Vector4D) float32
- func (v *Vector4D) FillC(c float32) *Vector4D
- func (v *Vector4D) Interpolate(v1 Vector4D, t float32) *Vector4D
- func (v *Vector4D) Magnitude() float32
- func (v *Vector4D) MulC(c float32) *Vector4D
- func (v *Vector4D) MulCAdd(c float32, v1 Vector4D) *Vector4D
- func (v *Vector4D) MulCSub(c float32, v1 Vector4D) *Vector4D
- func (v *Vector4D) Multiply(v1 Vector4D) *Vector4D
- func (v *Vector4D) Neg() *Vector4D
- func (v *Vector4D) Normal() *Vector4D
- func (v *Vector4D) NormalFast() *Vector4D
- func (v *Vector4D) Pitch() float32
- func (a *Vector4D) Product(b Quaternion) *Vector4D
- func (v *Vector4D) Reflect(n Vector4D) *Vector4D
- func (v *Vector4D) Roll() float32
- func (v *Vector4D) Slerp(v1 Vector4D, time, spin float32) *Vector4D
- func (v *Vector4D) SlerpLong(v1 Vector4D, time, spin float32) *Vector4D
- func (v *Vector4D) Slice(start, end int) Vector
- func (v *Vector4D) Sub(v1 Vector4D) *Vector4D
- func (v *Vector4D) SubC(c float32) *Vector4D
- func (v *Vector4D) Sum() float32
- func (v *Vector4D) SumSqr() float32
- func (v *Vector4D) Theta() float32
- func (v *Vector4D) Vector() Vector
- func (v *Vector4D) XYZ() (float32, float32, float32)
- func (v *Vector4D) XYZW() (float32, float32, float32, float32)
- func (v *Vector4D) Yaw() float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Quaternion ¶
type Quaternion [4]float32
func (*Quaternion) Add ¶
func (v *Quaternion) Add(v1 Quaternion) *Quaternion
func (*Quaternion) AddC ¶
func (v *Quaternion) AddC(c float32) *Quaternion
func (*Quaternion) Axis ¶
func (v *Quaternion) Axis() Vector
func (*Quaternion) Clamp ¶
func (v *Quaternion) Clamp(min, max Quaternion) *Quaternion
func (*Quaternion) Clone ¶
func (v *Quaternion) Clone() *Quaternion
func (*Quaternion) Conjugate ¶
func (v *Quaternion) Conjugate() *Quaternion
func (*Quaternion) CopyFrom ¶
func (v *Quaternion) CopyFrom(start int, v1 Vector) *Quaternion
func (*Quaternion) Distance ¶
func (v *Quaternion) Distance(v1 Quaternion) float32
func (*Quaternion) DistanceSqr ¶
func (v *Quaternion) DistanceSqr(v1 Quaternion) float32
func (*Quaternion) DivC ¶
func (v *Quaternion) DivC(c float32) *Quaternion
func (*Quaternion) DivCAdd ¶
func (v *Quaternion) DivCAdd(c float32, v1 Quaternion) *Quaternion
func (*Quaternion) DivCSub ¶
func (v *Quaternion) DivCSub(c float32, v1 Quaternion) *Quaternion
func (*Quaternion) Dot ¶
func (v *Quaternion) Dot(v1 Quaternion) float32
func (*Quaternion) FillC ¶
func (v *Quaternion) FillC(c float32) *Quaternion
func (*Quaternion) Interpolate ¶
func (v *Quaternion) Interpolate(v1 Quaternion, t float32) *Quaternion
func (*Quaternion) Magnitude ¶
func (v *Quaternion) Magnitude() float32
func (*Quaternion) MulC ¶
func (v *Quaternion) MulC(c float32) *Quaternion
func (*Quaternion) MulCAdd ¶
func (v *Quaternion) MulCAdd(c float32, v1 Quaternion) *Quaternion
func (*Quaternion) MulCSub ¶
func (v *Quaternion) MulCSub(c float32, v1 Quaternion) *Quaternion
func (*Quaternion) Multiply ¶
func (v *Quaternion) Multiply(v1 Quaternion) *Quaternion
func (*Quaternion) Neg ¶
func (v *Quaternion) Neg() *Quaternion
func (*Quaternion) Normal ¶
func (v *Quaternion) Normal() *Quaternion
func (*Quaternion) NormalFast ¶
func (v *Quaternion) NormalFast() *Quaternion
func (*Quaternion) Pitch ¶
func (v *Quaternion) Pitch() float32
func (*Quaternion) Product ¶
func (a *Quaternion) Product(b Quaternion) *Quaternion
func (*Quaternion) Reflect ¶
func (v *Quaternion) Reflect(n Quaternion) *Quaternion
func (*Quaternion) Refract ¶
func (v *Quaternion) Refract(n Quaternion, ni, nt float32) (*Quaternion, bool)
func (*Quaternion) Roll ¶
func (v *Quaternion) Roll() float32
func (*Quaternion) Slerp ¶
func (v *Quaternion) Slerp(v1 Quaternion, time, spin float32) *Quaternion
func (*Quaternion) SlerpLong ¶
func (v *Quaternion) SlerpLong(v1 Quaternion, time, spin float32) *Quaternion
func (*Quaternion) Slice ¶
func (v *Quaternion) Slice(start, end int) Vector
func (*Quaternion) Sub ¶
func (v *Quaternion) Sub(v1 Quaternion) *Quaternion
func (*Quaternion) SubC ¶
func (v *Quaternion) SubC(c float32) *Quaternion
func (*Quaternion) Sum ¶
func (v *Quaternion) Sum() float32
func (*Quaternion) SumSqr ¶
func (v *Quaternion) SumSqr() float32
func (*Quaternion) Theta ¶
func (v *Quaternion) Theta() float32
func (*Quaternion) Vector ¶
func (v *Quaternion) Vector() Vector
func (*Quaternion) Yaw ¶
func (v *Quaternion) Yaw() float32
type Vector ¶
type Vector []float32
func (Vector) DistanceSqr ¶
func (Vector) NormalFast ¶
func (Vector) Product ¶
func (a Vector) Product(b Quaternion) Vector
type Vector2D ¶
type Vector2D [2]float32
func (*Vector2D) DistanceSqr ¶
func (*Vector2D) NormalFast ¶
type Vector3D ¶
type Vector3D [3]float32
func (*Vector3D) DistanceSqr ¶
func (*Vector3D) NormalFast ¶
type Vector4D ¶
type Vector4D [4]float32
func (*Vector4D) DistanceSqr ¶
func (*Vector4D) NormalFast ¶
func (*Vector4D) Product ¶
func (a *Vector4D) Product(b Quaternion) *Vector4D
Click to show internal directories.
Click to hide internal directories.