package
module
Version:
v0.0.0-...-6ac44a9
Opens a new window with list of versions in this module.
Published: Jun 21, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
type Light struct {
Point Vec
}
type Ray struct {
Origin Vec
Direction Vec
}
type Shape interface {
Hit(r Ray) bool
}
NewVec returns a new vector <x, y>.
Add sets v to a+b and returns v.
Dist returns the distance between v and a.
Div sets v to a/f and returns v.
Mul sets v to a*f and returns v.
Neg sets v to -a and returns v.
Sub sets v to a-b and returns v.
Source Files
¶
Directories
¶
cmd
|
|
|
|
Click to show internal directories.
Click to hide internal directories.