Computer Science Canada Error Quit #100 |
Author: | smool [ Thu Mar 08, 2012 5:48 pm ] | ||
Post subject: | Error Quit #100 | ||
So i get the error on this line of code:
To help explain a bit: Vector3D is a module i wrote, DotProduct takes in two array 1..3 of real values and results the dot product of the two vectors. CalcLength takes in an array 1..3 of real and result the magnitude of the vector. uGravity and poly (a, b).unormal are both unit vectors with magnitudes of 1, the first being the unit vector of Gravity and the second being the unit vector of the normal vector of the polygon (a, b). I was under the impression that to calculate the angle between two vectors, you arccos the dot product of them both divided by the product of their magnitudes, or alternately just arccos the dot product of their unit vectors. I am not always getting this error, just for certain polygons in my model. Mainly, I'm just curious as to what "error Quit #100." means. |
Author: | Dreadnought [ Thu Mar 08, 2012 6:10 pm ] | ||
Post subject: | Re: Error Quit #100 | ||
I tried
This produced the error "Quit #100". So it would seem you're providing arccosd an argument that is out of its domain (-1 to 1 inclusive). Hope this helps. [EDIT: perhaps your numbers are getting rounded up in some way giving you a dot product that is too big.] |
Author: | copthesaint [ Thu Mar 15, 2012 8:43 pm ] | ||
Post subject: | Re: Error Quit #100 | ||
Its catagory is under "General Errors" as an "unknown error"
|