[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];
} else if (p == 2 && m == 0 && z == 1) {
// 2d PGA (w squares to 0, x y square to +1):
// : x y w 1
// : yw wx xy wxy
// : 1 xy wx wy
// : x y w wxy
BasisBlade *pga_blades[8] = {
blades[2], blades[3], blades[1], blades[0],
blades[5], blades[4], blades[6], blades[7],
blades[0], blades[6], blades[4], blades[5],
blades[2], blades[3], blades[1], blades[7],
};
BasisGroup *pga_groups[2] = {
[BasisGroup new:4 basis:pga_blades + 0],