Replacing draw and distance with apps (#553)
* added draw.sc app Now working on distance app * Adding apps as carpet rules * adding distance app Co-authored-by: altrisi <altrisi.trillosierra@gmail.com>
This commit is contained in:
1 parent
7d727d9717
commit
aeb3e382a6
5 files changed
+257
-1
No files matched your search
@@ -1,3 +1,5 @@
|
||||
_euclidean_sq(vec1, vec2) -> reduce(vec1 - vec2, _a + _*_, 0);
|
||||
_euclidean(vec1, vec2) -> sqrt(reduce(vec1 - vec2, _a + _*_, 0));
|
||||
_vec_length(vec) -> sqrt(reduce(vec, _a + _*_, 0));
|
||||
_manhattan(vec1, vec2) -> reduce(vec1-vec2,_a+abs(_),0);
|
||||
_vec_length(vec) -> sqrt(reduce(vec, _a + _*_, 0));
|
||||
_round(num,precision) -> round(num*precision)/precision;
|
||||
Reference in new issue
Block a user