Vector.AngleAboutAxis always produces zero angle

Apologies in advance- I haven’t used Dynamo in years and I’m pretty rusty…

I’m trying to use Vector.AngleAboutAxis to calculate an angle from coordinates (X & Y are all I’m concerned about- they represent a camera direction from another application)

For some reason, I get a zero angle result- no matter what numbers I put in.
In the below example, I’d expect to get an angle of 45deg (or something like that)

Any suggestions or input would be appreciated

thank you

Andrew

Your second vector has no length, hence produces no angle. Ensure it has at least one aspect with a non-zero value. For example a Y vector would need >0 in the Y degree.

1 Like

Great, thanks Gavin

2 Likes