POV-Ray : Newsgroups : povray.general : Thanks for the Macros : Thanks for the Macros Server Time
13 Aug 2024 19:20:38 EDT (-0400)
  Thanks for the Macros  
From: Dan Connelly
Date: 5 Jul 1998 13:11:00
Message: <359FA595.FAB2BF38@flash.net>
Macros are a wonderful feature.  For example, they
allow me to do something I've wanted to do for a long
time:

   #macro vector_str(V, N1, N2)
     concat(
       "< ",
       str(V.x, N1, N2), ", ",
       str(V.y, N1, N2), ", ",
       str(V.z, N1, N2),
       " >"
     )
   #end

-- 
http://www.flash.net/~djconnel/


Post a reply to this message

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