package
Version:
v0.0.0-...-02f6ed8
Opens a new window with list of versions in this module.
Published: Nov 3, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
Documentation
¶
type Vec struct {
X, Y int
}
Vec is a 2D 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.