Lua
C++
Edit

iVec3

This class describes a three-dimensional integer vector.

Property Type Description
x number x component of the vector
y number y component of the vector
z number z component of the vector
iVec3 function iVec3(number x)
iVec3 function iVec3(number x, number y, number z)

Example

-- Create a new iVec3 with x = 1
local vec1 = iVec3(1)

-- Create a new iVec3 with x = 2, y = 3, and z = 4
local vec2 = iVec3(2, 3, 4)
Copyright © 2024 Ultra Software.
All rights reserved.