POV-Ray : Newsgroups : povray.general : Random but constrained vector : Random but constrained vector Server Time
6 Aug 2024 08:19:48 EDT (-0400)
  Random but constrained vector  
From: Tom Melly
Date: 17 Apr 2002 17:31:13
Message: <3cbde9a1@news.povray.org>
Given a vector <a,b,c>, how would I go about calculating a new vector within
x degrees of the original vector?

i.e. given a cone:

cone{<1,1,1>, 25, <0,0,0>,0}

a random vector within 25 degrees would lie within the cone's radius.


Post a reply to this message

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