POV-Ray : Newsgroups : povray.general : Status of Moray? : Re: New SDL for POVRay Server Time
13 Jul 2025 11:31:40 EDT (-0400)
  Re: New SDL for POVRay  
From: Zeger Knaepen
Date: 19 Sep 2007 13:43:10
Message: <46f15fae@news.povray.org>
> If vars are defined as float then why the need to define them as such?

you can also have other types, like String, or Vector, and so on

> On the other hand, integers are much faster so why not use both?

integers won't be faster, because they will always have to be converted to 
floats internally...
... I think... :)

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

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