[gatest] Rearrange the 2d PGA groups

Following the suggestions of Hamish Todd, group 0 forms the planar
quaternions (with the "complex number" in the first two components) and
transflections in group 1.
This commit is contained in:
Bill Currie 2023-06-08 22:46:02 +09:00
parent 0fbcd90e37
commit 331f3320e2

View file

@ -70,11 +70,11 @@
a.layout = [[BasisLayout new:4 groups: pga_groups] retain]; a.layout = [[BasisLayout new:4 groups: pga_groups] retain];
} else if (p == 2 && m == 0 && z == 1) { } else if (p == 2 && m == 0 && z == 1) {
// 2d PGA (w squares to 0, x y square to +1): // 2d PGA (w squares to 0, x y square to +1):
// : x y w 1 // : 1 xy wx wy
// : yw wx xy wxy // : x y w wxy
BasisBlade *pga_blades[8] = { BasisBlade *pga_blades[8] = {
blades[2], blades[3], blades[1], blades[0], blades[0], blades[6], blades[4], blades[5],
blades[5], blades[4], blades[6], blades[7], blades[2], blades[3], blades[1], blades[7],
}; };
BasisGroup *pga_groups[2] = { BasisGroup *pga_groups[2] = {
[BasisGroup new:4 basis:pga_blades + 0], [BasisGroup new:4 basis:pga_blades + 0],