1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-22 14:00:13 +00:00

gp:: removed the unused version of be_in_triangle

This commit is contained in:
Zeno Rogue 2018-04-11 00:55:05 +02:00
parent 7dd006bb05
commit fa86a88ea3
3 changed files with 4 additions and 14 deletions

View File

@ -511,7 +511,7 @@ namespace gp {
pushScreen([texture_remap] () { gp::show(texture_remap); });
}
void be_in_triangle2(local_info& li) { // hyperpoint atz(const transmatrix& T, const transmatrix& corners, loc at, int cornerid = 6, ld cf = 3) {
void be_in_triangle(local_info& li) {
int sp = 0;
auto& at = li.relative;
again:
@ -525,16 +525,6 @@ namespace gp {
li.last_dir = fix7(li.last_dir - sp);
}
void be_in_triangle(local_info& li) {
int& i = li.last_dir;
auto& at = li.relative;
while(at.first < 0 || at.second < 0) {
at = at * eudir(1);
i = fix7(i-1);
}
}
int length(loc p) {
return eudist(p.first, p.second);
}
@ -568,7 +558,7 @@ namespace gp {
int compute_dist(cell *c, int master_function(cell*)) {
auto li = get_local_info(c);
be_in_triangle2(li);
be_in_triangle(li);
cell *cm = c->master->c7;

View File

@ -3006,7 +3006,7 @@ namespace gp {
local_info get_local_info(cell *c);
const char *disp(loc at);
void be_in_triangle2(local_info& li);
void be_in_triangle(local_info& li);
int compute_dist(cell *c, int master_function(cell*));

View File

@ -439,7 +439,7 @@ int getHemisphere(cell *c, int which) {
int score = 0;
if(gp::on) {
auto li = gp::get_local_info(c);
gp::be_in_triangle2(li);
gp::be_in_triangle(li);
auto corner = gp::corners * gp::loctoh_ort(li.relative);
ld scored =
corner[0] * getHemisphere(c->master->c7, which)