add test for pointInEllipses

This commit is contained in:
serebrserg 2017-03-02 14:33:38 +03:00
parent 42ce089aa6
commit 6b3135959d
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,3 @@
1
1
0

View File

@ -0,0 +1,6 @@
SELECT pointInEllipses(33.3, 55.3, 33.4, 55.1, 1.0, 1.0) AS distance;
SELECT pointInEllipses(33.3 + v, 55.3 + v, 33.4, 55.1, 1.0, 1.0) AS distance from
(
select number + 0.1 as v from system.numbers limit 1
);
SELECT pointInEllipses(33.3, 55.3, 33.4, 55.1, 0.1, 0.2) AS distance;