POV-Ray : Newsgroups : povray.binaries.images : Sci-Fi Scene Assets : Re: Sci-Fi Scene Assets Server Time
5 May 2024 17:40:56 EDT (-0400)
  Re: Sci-Fi Scene Assets  
From: Tor Olav Kristensen
Date: 17 Apr 2021 00:35:00
Message: <web.607a642ba906d8e38e52cc8789db30a9@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
>...
> For a vector to be orthogonal to another their dot product must be zero. I.e.:
>
> <0, -A.z, +A.y> * <A.x, A.y, A.z> = 0
> (0*A.x) + (-A.z*A.y) + (A.y*A.z) = 0
> -A.y*A.z +A.y*A.z = 0
>
> <+A.z, 0, -A.x> * <A.x, A.y, A.z> = 0
> (+A.z*A.x) + (0*A.y) + (-A.x*A.z) = 0
> +A.x*A.z -A.x*A.z = 0
>
> <-A.y, +A.x, 0> * <A.x, A.y, A.z> = 0
> (-A.y*A.x) + (A.x*A.y) + (0*A.z) = 0
> -A.x*A.y +A.x*A.y = 0
>...

Sorry, even more mistakes:

I should have written it like this:
vdot(<0, -A.z, +A.y>, <A.x, A.y, A.z>) = 0

etc.

IIRC multiplication of a vector by another in POV-Ray, like in my faulty code
above, results in a new vector. E.g. like this:

<0*A.x, -A.z*A.y, +A.y*A.z>

--
Tor Olav
http://subcube.com
https://github.com/t-o-k


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.