Sujet : Re: Division of two complex numbers
De : invalid (at) *nospam* example.invalid (Moebius)
Groupes : sci.mathDate : 20. Jan 2025, 23:48:45
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vmmjsd$3f4ok$12@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla Thunderbird
Am 20.01.2025 um 23:40 schrieb Chris M. Thomasson:
[...] Fwiw, a fun part of GLSL is doing stuff like:
vec3 a = vec3(.25, 1, .75);
vec2 b = a.xz;
vec2 c = b + vec2(.75, .25);
c now equals (1, 1)
Nice.
In math:
a := (.25, 1, .75) ,
b := (a_1, a_3) ,
c := b + (.75, .25) .
Then c = (1, 1) .
:-P
Question. What if
vec4 a = vec4(.25, 1, .75, .999);
vec3 b = a.xz<?>;
I'd like to get b == (.25, .75, .999). :-P