Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
package
ln
2
3
type
Shape
interface
{
4
Compile()
5
BoundingBox() Box
6
Contains(Vector, float64) bool
7
Intersect(Ray) Hit
8
Paths() Paths
9
}
10
11
type
EmptyShape
struct
{
12
}
Callers
24
Compile
Method · 0.65
BoundingBox
Method · 0.65
PartitionScore
Method · 0.65
Partition
Method · 0.65
Split
Method · 0.65
BoundingBox
Method · 0.65
BoxForShapes
Function · 0.65
BoxForTriangles
Function · 0.65
BoundingBox
Method · 0.65
Filter
Method · 0.65
Intersect
Method · 0.65
Contains
Method · 0.65
Implementers
9
Function
ln/function.go
BooleanShape
ln/csg.go
Sphere
ln/sphere.go
Cone
ln/cone.go
Mesh
ln/mesh.go
Triangle
ln/triangle.go
EmptyShape
ln/shape.go
Cube
ln/cube.go
Cylinder
ln/cylinder.go
Calls
no outgoing calls
Tested by
no test coverage detected