mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-21 08:32:29 +00:00
replaced some instances of double to ld, so that everything compiles when ld is redefined to float
This commit is contained in:
+2
-2
@@ -584,7 +584,7 @@ transmatrix inverse(const transmatrix& T) {
|
||||
}
|
||||
|
||||
// distance between mh and 0
|
||||
double hdist0(const hyperpoint& mh) {
|
||||
ld hdist0(const hyperpoint& mh) {
|
||||
switch(cgclass) {
|
||||
case gcHyperbolic:
|
||||
if(mh[DIM] < 1) return 0;
|
||||
@@ -616,7 +616,7 @@ ld circlelength(ld r) {
|
||||
}
|
||||
|
||||
// distance between two points
|
||||
double hdist(const hyperpoint& h1, const hyperpoint& h2) {
|
||||
ld hdist(const hyperpoint& h1, const hyperpoint& h2) {
|
||||
// return hdist0(gpushxto0(h1) * h2);
|
||||
ld iv = intval(h1, h2);
|
||||
switch(cgclass) {
|
||||
|
||||
Reference in New Issue
Block a user