POV-Ray : Newsgroups : povray.general : function question : Re: function question Server Time
6 Aug 2024 10:29:02 EDT (-0400)
  Re: function question  
From:
Date: 3 Apr 2002 16:24:26
Message: <dismau0b4okcpjbttn20s9pc7lhftp9smo@4ax.com>
On Wed, 3 Apr 2002 15:21:39 -0600, "Shay" <sah### [at] simcopartscom> wrote:
> Can I define a function that takes a float and returns a vector?

Not directly but there is possible workaround.

> Something like this:
> function Get_Vec {<x^2,x^3,x^4>}
> Get_Vec (2) ------> <4,8,16>
> Do I have to use a macro to accomplish this?

If it is called only at parse time then macro version could be simpler to code.

ABX


Post a reply to this message

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