1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 22:12:59 +00:00

removed the dhypot functions

This commit is contained in:
Zeno Rogue
2019-08-10 00:05:42 +02:00
parent e77a6f3440
commit 986bf0ee9a
2 changed files with 3 additions and 13 deletions

View File

@@ -194,16 +194,6 @@ EX ld hypot_d(int d, const hyperpoint& h) {
return sqrt(sqhypot_d(d, h));
}
EX ld sqdhypot_d(int d, const hyperpoint& a, const hyperpoint& b) {
ld sum = 0;
for(int i=0; i<d; i++) sum += (a[i]-b[i])*(a[i]-b[i]);
return sum;
}
EX ld dhypot_d(int d, const hyperpoint& a, const hyperpoint& b) {
return sqrt(sqdhypot_d(d, a, b));
}
EX ld zlevel(const hyperpoint &h) {
if(translatable) return h[GDIM];
else if(sphere) return sqrt(intval(h, Hypc));