added documentation for all functions

This commit is contained in:
dm
2016-08-27 21:14:16 -07:00
parent 9b908a8db1
commit ecc870943e
4 changed files with 34 additions and 3 deletions
+1
View File
@@ -2,6 +2,7 @@ package rect
import "math"
// Returns the size of the triangle formed by points p1, p2, and p3
func sizeTriangle(p1, p2, p3 Point) float64 {
return math.Abs((p1.X*p2.Y + p2.X*p3.Y + p3.X*p1.Y - p1.Y*p2.X - p2.Y*p3.X - p3.Y*p1.X) / 2)
}