13 lines
237 B
Go
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)
|
||
|
}
|