Lua
C++
Edit

Vec2

This structure describes a two-dimensional vector.

Property Type Description
x number x component of the vector
y number y component of the vector
Vec2 Constructor Vec2(number x)
Vec2 Constructor Vec2(number x, number y)
Length Method returns the length of the vector
Normalize Method returns the normalized vector
Copyright © 2024 Ultra Software.
All rights reserved.