A 2D vector data class containing an x and a y coordinate. Example usages: Position of the player, the enemy, or a wall.
Normalize vector to length = 1
the normalized 2d vector
Round down to integer (throw away decimals) Used in maps to "go" to the origin of the map tile/element
The vector which we use to subtract from (this)
Subtrahend: Copy of difference of vectors
To String method
string with x and y elements
Generated using TypeDoc
A 2D vector data class containing an x and a y coordinate. Example usages: Position of the player, the enemy, or a wall.