argos::CLuaVector2 Class Reference

#include <lua_vector2.h>

Static Public Member Functions

static void RegisterType (lua_State *pt_state)
 
static const std::string & GetTypeId ()
 
static int Create (lua_State *pt_state)
 
template<class... TArguments>
static void PushVector2 (lua_State *pt_state, TArguments &&... t_arguments)
 
static CVector2ToVector2 (lua_State *pt_state, int n_index)
 
static int Index (lua_State *pt_state)
 
static int NewIndex (lua_State *pt_state)
 
static int ToString (lua_State *pt_state)
 
static int Equal (lua_State *pt_state)
 
static int Add (lua_State *pt_state)
 
static int Multiply (lua_State *pt_state)
 
static int Subtract (lua_State *pt_state)
 
static int UnaryMinus (lua_State *pt_state)
 
static int Normalize (lua_State *pt_state)
 
static int Length (lua_State *pt_state)
 
static int DotProduct (lua_State *pt_state)
 
static int CrossProduct (lua_State *pt_state)
 
static int Rotate (lua_State *pt_state)
 

Detailed Description

Definition at line 24 of file lua_vector2.h.

Member Function Documentation

◆ Add()

int argos::CLuaVector2::Add ( lua_State *  pt_state)
static

Definition at line 177 of file lua_vector2.cpp.

◆ Create()

int argos::CLuaVector2::Create ( lua_State *  pt_state)
static

Definition at line 48 of file lua_vector2.cpp.

◆ CrossProduct()

int argos::CLuaVector2::CrossProduct ( lua_State *  pt_state)
static

Definition at line 245 of file lua_vector2.cpp.

◆ DotProduct()

int argos::CLuaVector2::DotProduct ( lua_State *  pt_state)
static

Definition at line 256 of file lua_vector2.cpp.

◆ Equal()

int argos::CLuaVector2::Equal ( lua_State *  pt_state)
static

Definition at line 166 of file lua_vector2.cpp.

◆ GetTypeId()

static const std::string& argos::CLuaVector2::GetTypeId ( )
inlinestatic

Definition at line 30 of file lua_vector2.h.

◆ Index()

int argos::CLuaVector2::Index ( lua_State *  pt_state)
static

Definition at line 101 of file lua_vector2.cpp.

◆ Length()

int argos::CLuaVector2::Length ( lua_State *  pt_state)
static

Definition at line 236 of file lua_vector2.cpp.

◆ Multiply()

int argos::CLuaVector2::Multiply ( lua_State *  pt_state)
static

Definition at line 188 of file lua_vector2.cpp.

◆ NewIndex()

int argos::CLuaVector2::NewIndex ( lua_State *  pt_state)
static

Definition at line 136 of file lua_vector2.cpp.

◆ Normalize()

int argos::CLuaVector2::Normalize ( lua_State *  pt_state)
static

Definition at line 227 of file lua_vector2.cpp.

◆ PushVector2()

template<class... TArguments>
static void argos::CLuaVector2::PushVector2 ( lua_State *  pt_state,
TArguments &&...  t_arguments 
)
inlinestatic

Definition at line 37 of file lua_vector2.h.

◆ RegisterType()

void argos::CLuaVector2::RegisterType ( lua_State *  pt_state)
static

Definition at line 23 of file lua_vector2.cpp.

◆ Rotate()

int argos::CLuaVector2::Rotate ( lua_State *  pt_state)
static

Definition at line 268 of file lua_vector2.cpp.

◆ Subtract()

int argos::CLuaVector2::Subtract ( lua_State *  pt_state)
static

Definition at line 207 of file lua_vector2.cpp.

◆ ToString()

int argos::CLuaVector2::ToString ( lua_State *  pt_state)
static

Definition at line 291 of file lua_vector2.cpp.

◆ ToVector2()

CVector2 & argos::CLuaVector2::ToVector2 ( lua_State *  pt_state,
int  n_index 
)
static

Definition at line 83 of file lua_vector2.cpp.

◆ UnaryMinus()

int argos::CLuaVector2::UnaryMinus ( lua_State *  pt_state)
static

Definition at line 218 of file lua_vector2.cpp.