package
Version:
v0.0.0-...-93e07d4
Opens a new window with list of versions in this module.
Published: Jan 2, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Distance is the distance between the two vectors
DistanceSquared is the sum of the square of the given vectors
type Vector struct {
X, Y, Z float32
}
Vector represents a 3D vector
Add adds the two given vectors
Multiply is the dot product of the two given vectors
Normalize the given vector i.e convert it into a unit vector
Length returns the length/magnitude of the vector
Source Files
¶
Click to show internal directories.
Click to hide internal directories.