geom/trianglef_test.go
Sander Schobers e01aa3242d Added TriangleF.
Renamed Add to Extend on PolygonF{,32}.
Add now translates a polygon.
2021-08-09 01:37:16 +02:00

13 lines
237 B
Go

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