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

# Functions

Distance returns the euclidian distance between two points.
Dot returns the dot product of two vectors.
No description provided by the author
No description provided by the author
New returns a vec2 from its components.
NewI returns a vec2 from integer components.

# Variables

No description provided by the author
No description provided by the author
One is the one vector.
UnitX is the unit vector in the X direction.
UnitY is the unit vector in the Y direction.
Zero is the zero vector.

# Structs

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

# Type aliases

Array holds an array of 2-component vectors.