Buy Me a Coffee at ko-fi.com

Creates and returns a vector of the appropriate size to hold the arguments passed in
For example; if you call vec(3, 4, 0, 2), then the function will return a Vector4 containing those values
There is a global alias "vec" for this function, meaning the "vectors." can be omitted

overload 1:
VectorsAPI.vec(x: Number, y: Number): Vector2
typings.-1950496919typings.-1950496919typings.2002444079
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
Return Value
overload 2:
VectorsAPI.vec(x: Number, y: Number, z: Number): Vector3
typings.-1950496919typings.-1950496919typings.-1950496919typings.2002444080
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value
overload 3:
VectorsAPI.vec(x: Number, y: Number, z: Number, w: Number): Vector4
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.2002444081
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
w accepts
Return Value