mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-02 02:37:55 +00:00
relativistic projections added
This commit is contained in:
@@ -483,6 +483,8 @@ bool behind3(shiftpoint h) {
|
||||
return lp_apply(inverse_exp(h))[2] < 0;
|
||||
if(pmodel == mdLiePerspective)
|
||||
return lp_apply(lie_log(unshift(h)))[2] < 0;
|
||||
if(pmodel == mdRelPerspective)
|
||||
return lp_apply(rel_log(h))[2] < 0;
|
||||
return h[2] < 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user