This commit is contained in:
Quentin
2023-07-02 00:59:02 +02:00
committed by GitHub
parent f96356960a
commit 3bdd0796f4
56 changed files with 2804 additions and 24 deletions

View File

@ -3,6 +3,32 @@
namespace lua::vector
{
// Lua API: Class
// Name: vec3
// Class representing a 3D vector.
// Lua API: Constructor
// Class: vec3
// Param: x: float: x component of the vector.
// Param: y: float: y component of the vector.
// Param: z: float: z component of the vector.
// Returns a vector that contains the x, y, and z values.
// Lua API: Field
// Class: vec3
// Field: x: float
// x component of the vector.
// Lua API: Field
// Class: vec3
// Field: y: float
// y component of the vector.
// Lua API: Field
// Class: vec3
// Field: z: float
// z component of the vector.
static void bind(sol::state& state)
{
//clang-format off