MCPcopy Index your code
hub / github.com/fogleman/ln / Contains

Method Contains

ln/function.go:29–35  ·  view source on GitHub ↗
(v Vector, eps float64)

Source from the content-addressed store, hash-verified

27}
28
29func (f *Function) Contains(v Vector, eps float64) bool {
30 if f.Direction == Below {
31 return v.Z < f.Function(v.X, v.Y)
32 } else {
33 return v.Z > f.Function(v.X, v.Y)
34 }
35}
36
37func (f *Function) Intersect(ray Ray) Hit {
38 step := 1.0 / 64

Callers 1

IntersectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected