|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
#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?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Parse Error: Expected 'numberic expression', undeclared identifier
'vangle'
> found instead
Capitalization matters: try VAngle. (Or VAngleD if you're expecting degrees
instead of radians.)
> and something about vangle..
>
> let's say if i put vangle (v1,v2) = 60
>
> then will vangle (v2,v1) = 300?
> or -60?
No, they'll both return 60. In 3D space, the angle between two vectors is
always between 0 and 180.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
|
|