geom/trianglef_test.go

13 lines
237 B
Go
Raw Permalink Normal View History

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)
}