Re: advmath.zh - atan, acos, asin
"import" means "take the contents of the file referenced, and stick it right here, pretending it's the same file". A good example of why you would do this with something other than std.zh (or advmath.zh) is:
Code:
//So I don't have to hit Import every time I change my script file:
import "thescriptfile.z"
Re: advmath.zh - atan, acos, asin
I've updated the header a bit, to include a bug-fixed version of findAngle. Here's a copy of the function:
Code:
float findAngle(float x1, float y1, float x2, float y2) {
float ret;
float dx = x2 - x1;
float dy = y2 - y1;
ret = ArcTan(dy, dx);
return PI / 2 - ret;
}