summaryrefslogtreecommitdiff
path: root/geometry.go
diff options
context:
space:
mode:
Diffstat (limited to 'geometry.go')
-rw-r--r--geometry.go3
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
}