POV-Ray : Newsgroups : povray.newusers : Help with If statements : Re: Help with If statements Server Time
28 Jul 2024 22:25:55 EDT (-0400)
  Re: Help with If statements  
From: Alain
Date: 10 Jul 2007 09:19:42
Message: <4693876e$1@news.povray.org>
quoderatd nous apporta ses lumieres en ce 2007/07/09 23:52:
> #if (vangle(vec2, chiral) > 0 | vangle (vec2, chiral) = 0)
> vaxis_rotate(vecb, chiral, a2* 2* pi/circum)
> else
> vaxis_rotate(vecb, chiral, -a2* 2* pi/circum)
> 
> and i get
> Parse Error: Expected 'numberic expression', undeclared identifier 'vangle'
> found instead
> 
> And
> So I tried declaring a variable
> #declare vecra = (vangle(vec1, chiral));
> but
> Parse Error: Expected 'numberic expression', undeclared identifier 'vangle'
> found instead
> 
> vangle is a function i can but....
> 
> and something about vangle..
> 
> let's say if i put vangle (v1,v2) = 60
> 
> then will vangle (v2,v1) = 300?
> or -60?
> 
> 
> 
Make sure that you included the file "math.inc" that contains the definitions 
for those macros.
Capitalisation DOES mather: vangle and VAngle are 2 distinct macro names.
VAngle(V1,V2) return the result as radiant.
VAngleD(V1,V2) return the result as degrees.

-- 
Alain
-------------------------------------------------
At twenty years of age the will reigns; at thirty, the wit; and at forty, the 
judgment.
Benjamin Franklin


Post a reply to this message

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