Vector module
Author |
Message |
smool
|
Posted: 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.
Description: |
|
Download |
Filename: |
Vector.tu |
Filesize: |
2.9 KB |
Downloaded: |
160 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Dreadnought
|
Posted: 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!
|
|
|
|
|
|
smool
|
Posted: 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.
Description: |
|
Download |
Filename: |
Vector.tu |
Filesize: |
2.89 KB |
Downloaded: |
153 Time(s) |
|
|
|
|
|
|
|
|