2023-06-06 07:40:40 +00:00
|
|
|
#pragma once
|
2023-06-27 20:13:05 +02:00
|
|
|
#include "lua/sol.hpp"
|
2023-06-06 07:40:40 +00:00
|
|
|
|
|
|
|
namespace lua::vector
|
|
|
|
{
|
2023-07-02 00:59:02 +02:00
|
|
|
// 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.
|
|
|
|
|
2023-07-18 13:07:33 +02:00
|
|
|
void bind(sol::state& state);
|
2023-06-06 07:40:40 +00:00
|
|
|
}
|