From 3bceb0b46f1838704f768a57087fa9345ba83e15 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 29 Apr 2020 13:57:43 +0200 Subject: [PATCH] Math: remove some obsolete swizzling members for vectors. --- include/lol/private/math/vector.h | 134 +++++++++++++++--------------- 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/include/lol/private/math/vector.h b/include/lol/private/math/vector.h index cfb29fd1..2caa72ac 100644 --- a/include/lol/private/math/vector.h +++ b/include/lol/private/math/vector.h @@ -267,36 +267,36 @@ struct [[nodiscard]] vec_t struct { T s, t; }; #if !_DOXYGEN_SKIP_ME - vec_t const xx, rr, ss/**/, ww; - vec_t const xy, rg, st, rt, wh; - vec_t const yx, gr, ts, tr, hw; - vec_t const yy, gg, tt/**/, hh; - - vec_t const xxx, rrr, sss /**/, www; - vec_t const xxy, rrg, sst, rrt, wwh; - vec_t const xyx, rgr, sts, rtr, whw; - vec_t const xyy, rgg, stt, rtt, whh; - vec_t const yxx, grr, tss, trr, hww; - vec_t const yxy, grg, tst, trt, hwh; - vec_t const yyx, ggr, tts, ttr, hhw; - vec_t const yyy, ggg, ttt /**/, hhh; - - vec_t const xxxx, rrrr, ssss /**/, wwww; - vec_t const xxxy, rrrg, ssst, rrrt, wwwh; - vec_t const xxyx, rrgr, ssts, rrtr, wwhw; - vec_t const xxyy, rrgg, sstt, rrtt, wwhh; - vec_t const xyxx, rgrr, stss, rtrr, whww; - vec_t const xyxy, rgrg, stst, rtrt, whwh; - vec_t const xyyx, rggr, stts, rttr, whhw; - vec_t const xyyy, rggg, sttt, rttt, whhh; - vec_t const yxxx, grrr, tsss, trrr, hwww; - vec_t const yxxy, grrg, tsst, trrt, hwwh; - vec_t const yxyx, grgr, tsts, trtr, hwhw; - vec_t const yxyy, grgg, tstt, trtt, hwhh; - vec_t const yyxx, ggrr, ttss, ttrr, hhww; - vec_t const yyxy, ggrg, ttst, ttrt, hhwh; - vec_t const yyyx, gggr, ttts, tttr, hhhw; - vec_t const yyyy, gggg, tttt /**/, hhhh; + vec_t const xx, rr, ss; + vec_t const xy, rg, st; + vec_t const yx, gr, ts; + vec_t const yy, gg, tt; + + vec_t const xxx, rrr, sss; + vec_t const xxy, rrg, sst; + vec_t const xyx, rgr, sts; + vec_t const xyy, rgg, stt; + vec_t const yxx, grr, tss; + vec_t const yxy, grg, tst; + vec_t const yyx, ggr, tts; + vec_t const yyy, ggg, ttt; + + vec_t const xxxx, rrrr, ssss; + vec_t const xxxy, rrrg, ssst; + vec_t const xxyx, rrgr, ssts; + vec_t const xxyy, rrgg, sstt; + vec_t const xyxx, rgrr, stss; + vec_t const xyxy, rgrg, stst; + vec_t const xyyx, rggr, stts; + vec_t const xyyy, rggg, sttt; + vec_t const yxxx, grrr, tsss; + vec_t const yxxy, grrg, tsst; + vec_t const yxyx, grgr, tsts; + vec_t const yxyy, grgg, tstt; + vec_t const yyxx, ggrr, ttss; + vec_t const yyxy, ggrg, ttst; + vec_t const yyyx, gggr, ttts; + vec_t const yyyy, gggg, tttt; #endif T m_data[count]; @@ -412,43 +412,43 @@ struct [[nodiscard]] vec_t struct { T s, t, p; }; #if !_DOXYGEN_SKIP_ME - vec_t const xx, rr, ss/**/, ww; - vec_t const xy, rg, st, rt, wh; - vec_t const xz, rb, sp, rp, wd; - vec_t const yx, gr, ts, tr, hw; - vec_t const yy, gg, tt/**/, hh; - vec_t const yz, gb, tp/**/, hd; - vec_t const zx, br, ps, pr, dw; - vec_t const zy, bg, pt/**/, dh; - vec_t const zz, bb, pp/**/, dd; - - vec_t const xxx, rrr, sss /**/, www; - vec_t const xxy, rrg, sst, rrt, wwh; - vec_t const xxz, rrb, ssp, rrp, wwd; - vec_t const xyx, rgr, sts, rtr, whw; - vec_t const xyy, rgg, stt, rtt, whh; - vec_t const xyz, rgb, stp, rtp, whd; - vec_t const xzx, rbr, sps, rpr, wdw; - vec_t const xzy, rbg, spt, rpt, wdh; - vec_t const xzz, rbb, spp, rpp, wdd; - vec_t const yxx, grr, tss, trr, hww; - vec_t const yxy, grg, tst, trt, hwh; - vec_t const yxz, grb, tsp, trp, hwd; - vec_t const yyx, ggr, tts, ttr, hhw; - vec_t const yyy, ggg, ttt /**/, hhh; - vec_t const yyz, ggb, ttp /**/, hhd; - vec_t const yzx, gbr, tps, tpr, hdw; - vec_t const yzy, gbg, tpt /**/, hdh; - vec_t const yzz, gbb, tpp /**/, hdd; - vec_t const zxx, brr, pss, prr, dww; - vec_t const zxy, brg, pst, prt, dwh; - vec_t const zxz, brb, psp, prp, dwd; - vec_t const zyx, bgr, pts, ptr, dhw; - vec_t const zyy, bgg, ptt /**/, dhh; - vec_t const zyz, bgb, ptp /**/, dhd; - vec_t const zzx, bbr, pps, ppr, ddw; - vec_t const zzy, bbg, ppt /**/, ddh; - vec_t const zzz, bbb, ppp /**/, ddd; + vec_t const xx, rr, ss; + vec_t const xy, rg, st; + vec_t const xz, rb, sp; + vec_t const yx, gr, ts; + vec_t const yy, gg, tt; + vec_t const yz, gb, tp; + vec_t const zx, br, ps; + vec_t const zy, bg, pt; + vec_t const zz, bb, pp; + + vec_t const xxx, rrr, sss; + vec_t const xxy, rrg, sst; + vec_t const xxz, rrb, ssp; + vec_t const xyx, rgr, sts; + vec_t const xyy, rgg, stt; + vec_t const xyz, rgb, stp; + vec_t const xzx, rbr, sps; + vec_t const xzy, rbg, spt; + vec_t const xzz, rbb, spp; + vec_t const yxx, grr, tss; + vec_t const yxy, grg, tst; + vec_t const yxz, grb, tsp; + vec_t const yyx, ggr, tts; + vec_t const yyy, ggg, ttt; + vec_t const yyz, ggb, ttp; + vec_t const yzx, gbr, tps; + vec_t const yzy, gbg, tpt; + vec_t const yzz, gbb, tpp; + vec_t const zxx, brr, pss; + vec_t const zxy, brg, pst; + vec_t const zxz, brb, psp; + vec_t const zyx, bgr, pts; + vec_t const zyy, bgg, ptt; + vec_t const zyz, bgb, ptp; + vec_t const zzx, bbr, pps; + vec_t const zzy, bbg, ppt; + vec_t const zzz, bbb, ppp; vec_t const xxxx, rrrr, ssss; vec_t const xxxy, rrrg, ssst;