Vector2DMixin

Source: SharedXML\Vector2D.lua
==API==
* CreateVector2D(x, y) : vector - Creates a new vector.
* AreVector2DEqual(left, right) : boolean - Compares if vectors are equal.
===Methods===
* Vector2DMixin:IsEqualTo(vector) : boolean
* Vector2DMixin:GetXY() : x, y
* Vector2DMixin:SetXY(x, y)
* Vector2DMixin:ScaleBy(scalar)
* Vector2DMixin:DivideBy(scalar)
* Vector2DMixin:Add(vector)
* Vector2DMixin:Subtract(vector)
* Vector2DMixin:Cross(vector)
* Vector2DMixin:Dot(vector) : dot
* Vector2DMixin:IsZero() : boolean
* Vector2DMixin:GetLengthSquared() : lengthSquared
* Vector2DMixin:GetLength() : length
* Vector2DMixin:Normalize()
* Vector2DMixin:RotateDirection(rotationRadians)
* Vector2DMixin:Clone() : vector
==Example==
local a = CreateVector2D(12, 5)
local b = CreateVector2D(2, 3)
a:Add(b)
print(a:GetXY()) -- 14, 8
The minimal representation is a table with x and y fields.
/dump C_Map.GetWorldPosFromMapPos(37, CreateVector2D(.5, 1))
/dump C_Map.GetWorldPosFromMapPos(37, {x = .5, y = 1})
==Used by==
Function arguments
: 
: 
: 
: 
:
Function returns
: 
: 
: 
: 
: 
: 
: 
: 
: 
: 
:
Structures
: AnimaDiversionNodeInfo
:: 
: AreaPOIInfo
:: 
: ArtifactPowerInfo
:: 
: ContributionMapInfo
:: 
: DigSiteMapInfo
:: 
: DungeonEntranceMapInfo
:: 
: GarrisonPlotInstanceMapInfo
:: 
: GossipPoiInfo
:: 
: GraveyardMapInfo
:: 
: InvasionMapInfo
:: 
: MapLinkInfo
:: 
: MapTaxiNodeInfo
:: 
: PetTamerMapInfo
:: 
: TaxiNodeInfo
::
==Patch changes==
==External links==
*