Vector2D AS2 Class
[[[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
Visit publisher site: Vector2D AS2 ClassListing Details
- Version:
- 1
- Filed in:
-
Scripts / Flash / Software
- Submitted on:
- Last Updated:
- Nov 11, 2005
- Publisher:
- Matt Lentz Other listings by this publisher
License & Pricing Information
- License Type:
- GPL
- Price:
- $0.00 USD
- Additional Info:
- License Type:
- GPL
- Price:
- $0.00 USD
- Additional Info:
User Reviews
Be the first to review this listing!Not yet reviewed by any member.... You can be the FIRST one to write a review for Vector2D AS2 Class