|
Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
#include <angle.hpp>
Public Member Functions | |
| Angle () | |
| Construct a new Angle object. | |
| Angle (float degrees) | |
| Construct a new Angle object from degrees. | |
| Angle (std::byte value) | |
| Construct a new Angle object from byte. | |
| ~Angle ()=default | |
| Destroy the Angle object. | |
| float | getDegrees () const |
| Get the Degrees of the Angle. | |
| std::byte | getByte () const |
| Get the Byte representation. | |
Static Public Member Functions | |
| static void | loadLua (lua_State *state, const char *namespaceName) |
| Loads Angle to lua state. | |
Angle class holder.
Minecraft-way to hold angles as a single byte.
|
inline |
Construct a new Angle object from degrees.
| degrees | the degrees of the angle |
|
inline |
Construct a new Angle object from byte.
| value | the byte value of the angle |
|
inline |
Get the Byte representation.
|
inline |
Get the Degrees of the Angle.
Loads Angle to lua state.
| state | lua state |
| namespaceName | base namespace name |