Vec2D Object
The Vec2D objects represents a two dimensional vector. It's normally used for UV coords.
Properties
Constructor
Vec2D( Number x, Number y)
|
|
|
| Creates a two dimensional vector.
|
Methods
BOOL isEqual(Vec2D a)
|
|
|
| Returns true if this vector and vector a are equal.
|
Vec2D inverse()
|
|
|
| Returns the inverse of this vecotr.
|
Vec2D multiply(Number a)
Vec2D multiply(Vec2D a)
|
|
|
| Multiplys the vector with a.
|
Number norm()
|
|
|
| Returns the vector norm of the x and y components.
|
Vec2D copy()
|
|
|
| Creates a copy of the vector.
|
void set( Number x, Number y)
|
|
|
| Sets the values of the vector all at once.
|
|