feat: add PointDistance

This commit is contained in:
dudaodong committed 2023-03-23 17:49:07 +08:00
1 parent c28803b25e
commit cde5946bf0
3 files changed
+27

No files matched your search

+8
View File
@@ -192,3 +192,11 @@ func TestRadianToAngle(t *testing.T) {
assert.Equal(float64(90), result2)
assert.Equal(float64(45), result3)
}
func TestPointDistance(t *testing.T) {
assert := internal.NewAssert(t, "TestPointDistance")
result1 := PointDistance(1, 1, 4, 5)
assert.Equal(float64(5), result1)
}