Changeset 529 for trunk/src/lua
- Timestamp:
- 01/05/17 13:50:41 (8 years ago)
- Location:
- trunk/src/lua
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_area.cc
r520 r529 285 285 { 286 286 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) ); 288 288 return 1; 289 289 } -
trunk/src/lua/lua_math.cc
r520 r529 138 138 139 139 template< typename T > 140 int 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 146 template< typename T > 140 147 int nlua_vec_call( lua_State* L ) 141 148 { … … 324 331 static const struct luaL_Reg nlua_vec_f [] = { 325 332 { "clone", nlua_vec_clone<T> }, 333 { "sign", nlua_vec_sign<T> }, 326 334 { "get", nlua_vec_get<T> }, 327 335 { "tostring", nlua_vec_tostring<T> },
Note: See TracChangeset
for help on using the changeset viewer.