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

Method UpdateBoundingBox

ln/triangle.go:17–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17func (t *Triangle) UpdateBoundingBox() {
18 min := t.V1.Min(t.V2).Min(t.V3)
19 max := t.V1.Max(t.V2).Max(t.V3)
20 t.Box = Box{min, max}
21}
22
23func (t *Triangle) Compile() {
24}

Callers 3

NewTriangleFunction · 0.95
LoadBinarySTLFunction · 0.95
LoadSTLFunction · 0.95

Calls 2

MinMethod · 0.45
MaxMethod · 0.45

Tested by

no test coverage detected