mc-beta-server/server/Converter.js

7 lines
189 B
JavaScript
Raw Normal View History

2021-08-20 22:42:00 +01:00
module.exports.toAbsoluteInt = function(float = 0.0) {
return Math.round(float * 32.0);
2021-08-21 09:38:25 +01:00
}
module.exports.to360Fraction = function(float = 0.0) {
return Math.floor((float / 360) * 256);
2021-08-20 22:42:00 +01:00
}