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

Method UnitCube

ln/mesh.go:50–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (m *Mesh) UnitCube() {
51 m.FitInside(Box{Vector{}, Vector{1, 1, 1}}, Vector{})
52 m.MoveTo(Vector{}, Vector{0.5, 0.5, 0.5})
53}
54
55func (m *Mesh) MoveTo(position, anchor Vector) {
56 matrix := Translate(position.Sub(m.Box.Anchor(anchor)))

Callers 1

mainFunction · 0.80

Calls 2

FitInsideMethod · 0.95
MoveToMethod · 0.95

Tested by

no test coverage detected