mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-07 18:01:30 +00:00
[gatest] Use correct layout for multivector reverse
This fixes a bit of fun with reversing directly specified blades.
This commit is contained in:
parent
b3fed7282e
commit
5771cfb2ff
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ static MultiVector *new_mv (Algebra *algebra, BasisLayout *layout)
|
|||
int g = [b grade];
|
||||
unsigned mask = [b mask];
|
||||
double s = g & 2 ? -1 : 1;//FIXME do in BasisBlade?
|
||||
int ind = [layout bladeIndex:mask];
|
||||
int ind = [reverse.layout bladeIndex:mask];
|
||||
reverse.components[ind] += s * c;
|
||||
}
|
||||
return reverse;
|
||||
|
|
Loading…
Reference in a new issue