Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LanJian/godray
/ functions
Functions
31 in github.com/LanJian/godray
⨍
Functions
31
◇
Types & classes
12
↓ 20 callers
Method
Scale
(factor float64)
src/godray/color.go:18
↓ 13 callers
Method
Add
(c2 *Color)
src/godray/color.go:47
↓ 12 callers
Method
Dot
(b *Vector)
src/godray/algebra.go:38
↓ 10 callers
Method
Normalize
()
src/godray/algebra.go:50
↓ 9 callers
Method
Material
()
src/godray/geometry.go:11
↓ 8 callers
Method
Subtract
(b *Point)
src/godray/algebra.go:26
↓ 7 callers
Function
clamp
(min, max, num float64)
src/godray/color.go:29
↓ 5 callers
Method
Multiply
(c color.Color)
src/godray/color.go:17
↓ 4 callers
Function
NewSphere
(center *Point, radius float64, material *Material)
src/godray/geometry.go:28
↓ 3 callers
Method
Magnitude
()
src/godray/algebra.go:55
↓ 3 callers
Method
Normal
(p *Point)
src/godray/geometry.go:40
↓ 3 callers
Function
multiply
(a, b float64)
src/godray/color.go:25
↓ 2 callers
Function
getClosestIntersection
(ray *Ray, objects []Object)
src/main.go:22
↓ 1 callers
Method
Add
(b *Vector)
src/godray/algebra.go:18
↓ 1 callers
Method
Cross
(b *Vector)
src/godray/algebra.go:42
↓ 1 callers
Method
GetRayTo
(screen *Screen, u int, v int)
src/godray/camera.go:19
↓ 1 callers
Method
Intersect
(*Ray)
src/godray/geometry.go:10
↓ 1 callers
Function
NewCamera
(position *Point, view *Vector, up *Vector)
src/godray/camera.go:11
↓ 1 callers
Function
raytrace
(ray *Ray, lights []*Light, objects []Object, depth int)
src/main.go:43
↓ 1 callers
Method
side
()
src/godray/camera.go:15
Method
Add
(b *Vector)
src/godray/algebra.go:22
Method
Intersect
(r *Ray)
src/godray/geometry.go:44
Method
Material
()
src/godray/geometry.go:32
Method
Multiply
(c2 *Color)
src/godray/color.go:33
Method
Normal
(*Point)
src/godray/geometry.go:13
Method
Scale
(scalar float64)
src/godray/color.go:61
Method
Scale
(s float64)
src/godray/algebra.go:34
Method
SetMaterial
(*Material)
src/godray/geometry.go:12
Method
SetMaterial
(material *Material)
src/godray/geometry.go:36
Method
Subtract
(b *Vector)
src/godray/algebra.go:30
Function
main
()
src/main.go:116