Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Moebius Newsgroups: sci.math Subject: Re: Division of two complex numbers Date: Mon, 20 Jan 2025 23:48:45 +0100 Organization: A noiseless patient Spider Lines: 34 Message-ID: References: <51Tdfq24D44V9MS0l646QQuIrfo@jntp> Reply-To: invalid@example.invalid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 20 Jan 2025 23:48:45 +0100 (CET) Injection-Info: dont-email.me; posting-host="a448e8983be0a6b337b635e01f87c515"; logging-data="3642132"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LFtq8ilcelmXG+XfGLu+i" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:2BVa4of6SuD4DOTwa9V3ol1h/4k= In-Reply-To: Content-Language: de-DE Bytes: 1871 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