diff options
Diffstat (limited to 'geometry.go')
-rw-r--r-- | geometry.go | 5 |
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 |