summaryrefslogtreecommitdiff
path: root/geometry.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-03-16 20:18:18 +0100
committerxengineering <me@xengineering.eu>2022-03-16 20:18:18 +0100
commit0340cb664f19ab8f14d893c8d82b6dead705a794 (patch)
treeb311ee5d1040a2beabda5aab25372b0145e89ea2 /geometry.go
parentb38538bfd5a3ad3d55473a5c3970f0a46bc63970 (diff)
downloadstlscope-0340cb664f19ab8f14d893c8d82b6dead705a794.tar
stlscope-0340cb664f19ab8f14d893c8d82b6dead705a794.tar.zst
stlscope-0340cb664f19ab8f14d893c8d82b6dead705a794.zip
Reduce code width to <= 80 characters
Diffstat (limited to 'geometry.go')
-rw-r--r--geometry.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/geometry.go b/geometry.go
index 1fc516a..80420a6 100644
--- a/geometry.go
+++ b/geometry.go
@@ -58,7 +58,10 @@ func (s Surface) getHomeView() mgl32.Mat4 {
// calculate and return transformation
var trafo mgl32.Mat4 = mgl32.Ident4()
- trafo = mgl32.Translate3D(-center.scalars[0], -center.scalars[1], -center.scalars[2]).Mul4(trafo)
+ trafo = mgl32.Translate3D(
+ -center.scalars[0],
+ -center.scalars[1],
+ -center.scalars[2]).Mul4(trafo)
trafo = mgl32.Scale3D(zoom, zoom, zoom).Mul4(trafo)
return trafo