POV-Ray : Newsgroups : povray.beta-test : [includes] VPow does not work : Re: [includes] VPow does not work Server Time
29 Jul 2024 08:23:34 EDT (-0400)
  Re: [includes] VPow does not work  
From: Rune
Date: 15 Jun 2002 08:15:54
Message: <3d0b2ffa@news.povray.org>
Simon Adameit wrote:
> VPow in math.inc does not work, because pow only works with floats.

I presume it should work correct if it is changed to be like this below?

// Raises the components of a vector to a given power
#macro VPow(V, P) <pow(V.x, P), pow(V.y, P), pow(V.z, P)> #end
#macro VPow5D(V, P) <pow(V.x, P), pow(V.y, P), pow(V.z, P),
pow(V.filter, P), pow(V.transmit, P)> #end

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:  http://rsj.mobilixnet.dk (updated May 20)
POV-Ray Users: http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Ring:  http://webring.povray.co.uk


Post a reply to this message

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