POV-Ray : Newsgroups : povray.newusers : Trig Troubles : Re: Trig Troubles Server Time
5 Sep 2024 10:25:11 EDT (-0400)
  Re: Trig Troubles  
From: Margus Ramst
Date: 3 Mar 2001 20:14:04
Message: <3AA197D1.A5A6D1F7@peak.edu.ee>
Matthew Green wrote:
> 
> I want to create a ring of random width made of randomly spaced particles.
> What I get is random particles within a square boundary.  I've stared at
> this for 45 minutes now.  Where am I screwing up?

I see you already found the answer to your problem. However I think you could
cut out much of the trig stuff by using POV's built-in vector functions;
v_rotate() in particular seems to do exactly what you need, or perhaps
vaxis_rotate()

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg
Home page http://www.hot.ee/margusrt


Post a reply to this message

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