package
0.0.0-20240926133928-8e5a07668fa5
Repository: https://github.com/johanhenriksson/goworld.git
Documentation: pkg.go.dev
# Functions
Dot returns the dot product of two vectors.
Extend a vec3 to a vec4 by adding a W component.
Extend2 a vec2 to a vec4 by adding the Z and W components.
No description provided by the author
No description provided by the author
New returns a new vec4 from its components.
Random vector, not normalized.
# Variables
No description provided by the author
No description provided by the author
One is the unit vector.
UnitW returns a unit vector in the W direction.
UnitX returns a unit vector in the X direction.
UnitY returns a unit vector in the Y direction.
UnitZ returns a unit vector in the Z direction.
Zero is the zero vector.
# Type aliases
Array holds an array of 4-component vectors.