If you have a friend that you would
like to recommend this page to, or if you just want to send yourself
a reminder, here is the easy way to do it!
Simply fill in the e-mail address of the person(s)
you wish to tell about
Vector2D AS2 Class , your name and e-mail address (so they do not think it is spam and
can reply to you directly with gracious thanks), and click the SEND
button.
If you want to, you can also enter a message that will
be included on the e-mail.
After sending the e-mail, you will be transported back
to the page you recommended!
[[[Summary]]] Vector2D is an AS2 class that allows for 2 dimensional (x, y) vector math to be done in Flash. Extremely useful for any physics related Flash endeavor. [[[Variables]]] * X, Y - Components of the vector [[[Methods]]] * Clone() - Creates a new vector with the same values * Dot() - Finds the dot product between the vector and another vector * Length() - Gets the length of the vector * ProjectAlong() - Projects the vector along another vector * Normalize() - Normalizes the vector to a certain scale * GetUnitVector() - Gets the normalized form of the vector * Add(), Subtract(), Multiply(), Divide() - Operations on the vector and another vector * AddValue(), SubtractValue(), MultiplyValue(), DivideValue() - Operations on the vector and a value * Equal(), NotEqual(), Greater(), Less(), GreaterOrEqual(), LessOrEqual() - Boolean operations on the vector and another vector * ApproxEqual() - Boolean operation with tolerance on the vector and another