package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Feb 26, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 50
Opens a new window with list of known importers.
Documentation
¶
Package r2 provides 2D vectors and boxes and operations on them.
type Box struct {
Min, Max Vec
}
Box is a 2D bounding box.
Vec is a 2D vector.
Add returns the vector sum of p and q.
Scale returns the vector p scaled by f.
Sub returns the vector sum of p and -q.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.