package geom import ( "testing" "github.com/stretchr/testify/assert" ) func TestTriangleFSmallestAngle(t *testing.T) { triangle := TrF(PtF(0, 0), PtF(0, 1), PtF(1, 1)) assert.InEpsilon(t, .25*Pi, triangle.SmallestAngle(), 1e-9) }