POV-Ray : Newsgroups : povray.general : function question : Re: function question Server Time
19 Nov 2024 07:17:29 EST (-0500)
  Re: function question  
From: JRG
Date: 3 Apr 2002 16:33:59
Message: <3cab7547@news.povray.org>
"Shay" wrote:
> Can I define a function that takes a float and returns a vector?

No.

> 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?

Either that or something like:
#declare vec = <Get_VecX(2),Get_VecY(2),Get_VecZ(2)>;


--
Jonathan.

Home: http://digilander.iol.it/jrgpov


Post a reply to this message

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