Vec_to_angle Algorithm:

Posted By: Puppeteer

Vec_to_angle Algorithm: - 03/10/12 12:34

ANGLE.pan = atan(VECTOR.x/VECTOR.y);
ANGLE.tilt = asin(VECTOR.z/length(VECTOR));

Shouldn't it be:
ANGLE.pan = atan(VECTOR.y/VECTOR.x); ? (Opposite/Adjacent)
Posted By: jcl

Re: Vec_to_angle Algorithm: - 03/14/12 14:40

Yes, indeed. Thanks, this will be corrected.
© 2024 lite-C Forums