Add Vector2:Ceil()

This commit is contained in:
ZachCurtis 2024-07-16 01:36:39 -04:00
parent bdffd3741b
commit 1f35f02e15

View file

@ -84,6 +84,7 @@ impl LuaUserData for Vector2 {
Ok(Vector2(this.0.min(rhs.0)))
});
methods.add_method("Abs", |_, this, ()| Ok(Vector2(this.0.abs())));
methods.add_method("Ceil", |_, this, ()| Ok(Vector2(this.0.ceil())));
// Metamethods
methods.add_meta_method(LuaMetaMethod::Eq, userdata_impl_eq);
methods.add_meta_method(LuaMetaMethod::ToString, userdata_impl_to_string);