POV-Ray : Newsgroups : povray.newusers : Trig Troubles : Re: Trig Troubles Server Time
5 Nov 2024 01:23:34 EST (-0500)
  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.