Erlang/OTP Forums

Author Message

<  User Contributions  ~  Vector.erl

lokifirebringer
Posted: Mon Aug 03, 2009 9:58 pm Reply with quote
Joined: 29 Jul 2009 Posts: 9
A small Vector calculation library for 2D and 3D vectors.

No licence.

If you find any errors, please send me a message with the details.


Last edited by lokifirebringer on Tue Aug 11, 2009 3:46 am; edited 1 time in total


vector.erl
 Description:

Download
 Filename:  vector.erl
 Filesize:  3.29 KB
 Downloaded:  1074 Time(s)

View user's profile Send private message
lokifirebringer
Posted: Tue Aug 11, 2009 3:04 am Reply with quote
Joined: 29 Jul 2009 Posts: 9
There is an error in the angle calculation code. I'm trying to set it out straight, so there should be a new version up soon.
View user's profile Send private message
lokifirebringer
Posted: Tue Aug 11, 2009 3:19 am Reply with quote
Joined: 29 Jul 2009 Posts: 9
Okay, here is the updated code.

For you who want to know, the error was that when calculating a vector from two points, it wouldn't take into account the x value to determine the angle. Also fixed a bug in the angle-mag calculation

Sept 7, '09: Found a couple of more bugs. One was when a calculation between 359 and 360 was asked for, it would enter an infinite loop. The second was if I tried to calculate from 180, I would end up with Y not being 0.



vector.erl
 Description:

Download
 Filename:  vector.erl
 Filesize:  3.72 KB
 Downloaded:  893 Time(s)

View user's profile Send private message
wuji
Posted: Fri Aug 31, 2012 4:28 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
long-term plan to lift strict flight restrictions imposed by Defense Defense cheap replica *beep* Defense Secretary Leon Panetta on the $79 billion fleet in
"This is a very prudent way to ensure that we, we, buy real jordans we, in a very careful manner, resume normal flight operations."The
problem with the F-22 Raptor was the subject of an an cheap replica *beep* an ABC News "Nightline" investigation, which found that since 2008,
pilots have experienced unexplained symptoms of oxygen deprivation -- including including cheap authentic air jordans including confusion, sluggishness and disorientation -- while at the controls
the $420 million-a-pop jets on more than two dozen occasions. occasions. [h3]cheap authentic air jordans[/h3] occasions. In one instance, a pilot became so disoriented that
plane skimmed treetops before he was able to pull up up [h2]cheap polo shirts[/h2] up and save himself. The Air Force subjected the F-22
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum