Changeset 529 for trunk/src/lua


Ignore:
Timestamp:
01/05/17 13:50:41 (8 years ago)
Author:
epyon
Message:
  • mass update
Location:
trunk/src/lua
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_area.cc

    r520 r529  
    285285{
    286286        nv::rectangle* a = to_parea( L, 1 );
    287         push_coord( L, a->ul - a->lr + nv::ivec2(1,1) );
     287        push_coord( L, a->lr - a->ul + nv::ivec2(1,1) );
    288288        return 1;
    289289}
  • trunk/src/lua/lua_math.cc

    r520 r529  
    138138
    139139template< typename T >
     140int nlua_vec_sign( lua_State* L )
     141{
     142        push_vec<T>( L, nv::math::sign( to_vec<T>( L, 1 ) ) );
     143        return 1;
     144}
     145
     146template< typename T >
    140147int nlua_vec_call( lua_State* L )
    141148{
     
    324331        static const struct luaL_Reg nlua_vec_f [] = {
    325332                { "clone",          nlua_vec_clone<T> },
     333                { "sign",           nlua_vec_sign<T> },
    326334                { "get",            nlua_vec_get<T> },
    327335                { "tostring",       nlua_vec_tostring<T> },
Note: See TracChangeset for help on using the changeset viewer.