POV-Ray : Newsgroups : povray.general : Vector functions AAARRRRGGHH!!!!! : Re: Vector functions AAARRRRGGHH!!!!! Server Time
5 Aug 2024 02:18:41 EDT (-0400)
  Re: Vector functions AAARRRRGGHH!!!!!  
From: Timothy R  Cook
Date: 18 Dec 2002 23:36:35
Message: <3e014cd3$1@news.povray.org>
gonzo wrote:
> Is there somewhere I can find explanations and/or examples of them that are
> understandable by us regular folk?

well, the vector functions I use a lot are as follows:

th = TAN-1(y / x)
  x = r * COS(th)
  y = r * SIN(th)
  r = SQRT(x^2 + y^2)
  y = x * TAN(th)
  y = COS-1(x / r)

sin(th) = y / r
cos(th) = x / r
tan(th) = y / x

th is the angle, r is the radius or magnitude, x and y are...x and y
the last 4 formulae I had to use for the scene I'm working on right now
(had to research some of 'em out 'cuz I didn't have them in my notes
before)
Hope this helps.

-- 
Tim Cook
http://empyrean.scifi-fantasy.com

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

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