POV-Ray : Newsgroups : povray.newusers : A simple vector math question Server Time
27 Nov 2024 02:36:54 EST (-0500)
  A simple vector math question (Message 1 to 4 of 4)  
From: JK
Subject: A simple vector math question
Date: 21 Jul 2003 03:35:19
Message: <3f1b97b7@news.povray.org>
How can I find a vector (any vector) that is perpendicular to another vector
(that I already have)?
I need something I can use in an algorithm for solving this.

Thank you for any info.


Post a reply to this message

From: ABX
Subject: Re: A simple vector math question
Date: 21 Jul 2003 04:21:46
Message: <c98nhv4h6m4quqejqsap0cektbhohnfv7l@4ax.com>
On Mon, 21 Jul 2003 09:20:55 +0300, "JK" <bil### [at] mbnetfi> wrote:

> How can I find a vector (any vector) that is perpendicular to another vector
> (that I already have)?

Look at description of vcross vector function in your POV manual. Ask for
details if it is not enough for you.

ABX


Post a reply to this message

From: JK
Subject: Re: A simple vector math question
Date: 21 Jul 2003 07:12:48
Message: <3f1bcab0@news.povray.org>
Great, that's what I need!
Thanks


Post a reply to this message

From: Christopher James Huff
Subject: Re: A simple vector math question
Date: 21 Jul 2003 11:09:04
Message: <cjameshuff-98A5E6.10022421072003@netplex.aussie.org>
In article <3f1b97b7@news.povray.org>, "JK" <bil### [at] mbnetfi> wrote:

> How can I find a vector (any vector) that is perpendicular to another vector
> (that I already have)?
> I need something I can use in an algorithm for solving this.

VPerp_To_Vector(v0) in math.inc. Or if you have two vectors, 
VPerp_To_Plane(V1, V2).

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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