diff options
author | xengineering <mail2xengineering@protonmail.com> | 2021-05-20 15:24:04 +0200 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2021-05-20 15:33:46 +0200 |
commit | 0c87cf3f007797714755b309ad31602cedb8af1e (patch) | |
tree | 115802cbcf6547ba365f1ab1efc8bdcc30de4914 /geometry.go | |
parent | fbd513c7c2531c12fcd7e81bd4ce66c5ec5f6902 (diff) | |
download | stlscope-0c87cf3f007797714755b309ad31602cedb8af1e.tar stlscope-0c87cf3f007797714755b309ad31602cedb8af1e.tar.zst stlscope-0c87cf3f007797714755b309ad31602cedb8af1e.zip |
Update Documentation
Diffstat (limited to 'geometry.go')
-rw-r--r-- | geometry.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/geometry.go b/geometry.go index c9453a9..3c3ba83 100644 --- a/geometry.go +++ b/geometry.go @@ -2,18 +2,21 @@ package main +// representation of a three-dimensional point in space type Point struct { x float32 y float32 z float32 } +// a triangle consists of three points type Triangle struct { a *Point b *Point c *Point } +// a surface is made of a slice of triangles type Surface struct { triangles []*Triangle } |