mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
feat: add PointDistance
This commit is contained in:
1 parent
c28803b25e
commit
cde5946bf0
3 files changed
+27
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user