POV-Ray : Newsgroups : povray.general : guys could you help me out once more? : Re: guys could you help me out once more? Server Time
27 Apr 2024 19:25:58 EDT (-0400)
  Re: guys could you help me out once more?  
From: Bald Eagle
Date: 25 Aug 2017 08:50:00
Message: <web.59a01bfe61def543c437ac910@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:

> Not to make it any more complicated, but it might give a more compact code -
> what about calculating the array values by using abs(sin (somthing)), and that
> way when [theta] goes past the max, it automatically goes back to 0, and the y
> array can be calculated as int(theta/360)*SHIFT.

Actually, now that the coffees have started to kick in, a mod(A,B) function
would probably be better.


Post a reply to this message

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