From 0c87cf3f007797714755b309ad31602cedb8af1e Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 20 May 2021 15:24:04 +0200 Subject: Update Documentation --- geometry.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'geometry.go') 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 } -- cgit v1.2.3-70-g09d2