package
0.0.0-20240926133928-8e5a07668fa5
Repository: https://github.com/johanhenriksson/goworld.git
Documentation: pkg.go.dev

# Functions

Cross returns the cross product of two vectors.
Distance returns the euclidian distance between two points.
Dot returns the dot product of two vectors.
Extend a vec2 to a vec3 by adding a Z component.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
New returns a Vec3 from its components.
No description provided by the author
NewI returns a Vec3 from integer components.
No description provided by the author
Random vector, not normalized.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
One is the unit vector.
No description provided by the author
UnitX is the unit vector in the X direction (right).
UnitXN is the unit vector in the negative X direction (left).
UnitY is the unit vector in the Y direction (up).
UnitYN is the unit vector in the negative Y direction (down).
UnitZ is the unit vector in the Z direction (forward).
UnitZN is the unit vector in the negative Z direction (backward).
No description provided by the author
Zero is the zero vector.

# Structs

T holds a 3-component vector of 32-bit floats.

# Type aliases

Array holds an array of 3-component vectors.