:getY

Retrieves vector's y coord.

━ Syntax

[float y] vector:getY()

━ Usage

local cVector = vEngine.math.vector.create(10, 20, 30, 40) --Creates a new vector
local vectorCoordY = cVector:getY() --Retrieves vector's y coord
print(vectorCoordY) --Prints y coord of our vector

Last updated