Computer Science Canada Vector module |
Author: | smool [ Mon Mar 26, 2012 1:52 pm ] |
Post subject: | Vector module |
I wrote this because I have been doing alot of math with vectors, and this makes my life really easy. Has most of the basic vector operations, pm me if im missing something. |
Author: | Dreadnought [ Mon Mar 26, 2012 3:17 pm ] |
Post subject: | Re: Vector module |
The MakeUnit function uses a CalcLength function which is on the export list, but otherwise undeclared (I think you meant Magnitude). Also, the MakeUnit and SetLength functions will crash for a vector with all zero components. (division by zero error) Finally, the functions PlaneIntersection, Rotate, DrawVector and CalcLength (as mentioned above) are on the export list, but are not present in the module. Otherwise, nice module! |
Author: | smool [ Mon Mar 26, 2012 5:24 pm ] |
Post subject: | Re: Vector module |
Sorry, I had cleaned it up a bit from an earlier, messier version. Here is the improved version. |