MCPcopy
hub / github.com/fogleman/ln / Shape

Interface Shape

ln/shape.go:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package ln
2
3type Shape interface {
4 Compile()
5 BoundingBox() Box
6 Contains(Vector, float64) bool
7 Intersect(Ray) Hit
8 Paths() Paths
9}
10
11type EmptyShape struct {
12}

Callers 24

CompileMethod · 0.65
BoundingBoxMethod · 0.65
PartitionScoreMethod · 0.65
PartitionMethod · 0.65
SplitMethod · 0.65
BoundingBoxMethod · 0.65
BoxForShapesFunction · 0.65
BoxForTrianglesFunction · 0.65
BoundingBoxMethod · 0.65
FilterMethod · 0.65
IntersectMethod · 0.65
ContainsMethod · 0.65

Implementers 9

Functionln/function.go
BooleanShapeln/csg.go
Sphereln/sphere.go
Coneln/cone.go
Meshln/mesh.go
Triangleln/triangle.go
EmptyShapeln/shape.go
Cubeln/cube.go
Cylinderln/cylinder.go

Calls

no outgoing calls

Tested by

no test coverage detected