POV-Ray : Newsgroups : povray.general : Collective Short Code Wisdom : Re: Collective Short Code Wisdom Server Time
31 Jul 2024 02:30:27 EDT (-0400)
  Re: Collective Short Code Wisdom  
From: andrel
Date: 30 Nov 2007 17:05:40
Message: <47508934.1000800@hotmail.com>
Trevor G Quayle wrote:
> andrel <a_l### [at] hotmailcom> wrote:
>> Trevor G Quayle wrote:
>>>> 7.  Vector expressions with zero values can be shortened as follows:




>>> Also:
>>> "<1,0,1>" becomes x+z
>>> "<2,0,2>" becomes 2*(x+z)
>> 7 chars -> 7 chars. not much of an improvement ;)
>> I would suggest in stead: 2-2*y or 2-y-y
> 
> Sorry, bad example, more applicable to larger numbers
> 
> <20,0,20> -> 20*(x+z)
20-20*y is still shorter ;)
> 
> Probably better to scale the whole scene though instead...
> 
> -tgq
> 
>


Post a reply to this message

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