package
Version:
v0.0.0-...-955dece
Opens a new window with list of versions in this module.
Published: Sep 2, 2016
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
¶
type Vector struct {
X, Y, Z float64
}
Vector - struct holding X Y Z values of a 3D vector
Add - adds two vectors together
Cross - calculates the cross product of two Vectors
Dot - calculates the dot product of two Vectors
Length - calculates the length(magnitude) of the Vector
MultiplyByScalar - multiplies a Vector by s float64
Normalize - returns a versor created from the given vector
Sub - subtracts b Vector from a Vector
Source Files
¶
Click to show internal directories.
Click to hide internal directories.