Vector2DMixin

Source: SharedXML\Vector2D.lua

API

 * Wowpedia_icon_stamp.png CreateVector2D( x, y ) : vector - Creates a new vector.
 * Wowpedia_icon_stamp.png AreVector2DEqual( left, right ) : boolean - Compares if vectors are equal.

Methods

 * Wowpedia_icon_stamp.png Vector2DMixin:IsEqualTo( vector ) : boolean
 * Wowpedia_icon_stamp.png Vector2DMixin:GetXY : x, y
 * Wowpedia_icon_stamp.png Vector2DMixin:SetXY( x, y )
 * Wowpedia_icon_stamp.png Vector2DMixin:ScaleBy( scalar )
 * Wowpedia_icon_stamp.png Vector2DMixin:DivideBy( scalar )
 * Wowpedia_icon_stamp.png Vector2DMixin:Add( vector )
 * Wowpedia_icon_stamp.png Vector2DMixin:Subtract( vector )
 * Wowpedia_icon_stamp.png Vector2DMixin:Cross( vector )
 * Wowpedia_icon_stamp.png Vector2DMixin:Dot( vector ) : dot
 * Wowpedia_icon_stamp.png Vector2DMixin:IsZero : boolean
 * Wowpedia_icon_stamp.png Vector2DMixin:GetLengthSquared : lengthSquared
 * Wowpedia_icon_stamp.png Vector2DMixin:GetLength : length
 * Wowpedia_icon_stamp.png Vector2DMixin:Normalize
 * Wowpedia_icon_stamp.png Vector2DMixin:RotateDirection( rotationRadians )
 * Wowpedia_icon_stamp.png Vector2DMixin:Clone : vector

Example
It's also valid to only pass the  and   fields for API functions that would take a Vector2DMixin object.