package
Version:
v0.0.0-...-4203c70
Opens a new window with list of versions in this module.
Published: Dec 7, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 5
Opens a new window with list of known importers.
Documentation
¶
type Vec struct {
X, Y, Z int
}
Vec is a 3D integer vector.
Add adds two vectors. Return v = a + b.
AddScalar adds a scalar to each component of the vector.
SubScalar subtracts a scalar from each component of the vector.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.