nopename / nn_math Goto Github PK
View Code? Open in Web Editor NEWMinecraft math datapack focusing on speed and accuracy
License: MIT License
Minecraft math datapack focusing on speed and accuracy
License: MIT License
I was playing around with the functions and after putting the player's rotation as the input and executing sin_lt, I realized something odd. When the player's rotation value is negative, instead of the output going negative it returns 0. I first thought maybe it's because the function only supported input between 0 to 360 so I tried adding 180 before setting it as input, making the range 0 to 360. This also didn't work so I checked the datapack and looked into the functions. The "exe" function was all good, it divides the input by 360 and takes the remainder for the actual angle, divides that by 180 and takes it's reminder to later use for the look-up, later checks if the input was bigger than 180 to convert the output to negative, it all made sense. But then I looked at the look-up table. Instead of using the "tmp", the look-up table uses the input itself, causing anything bigger than 180 to output 0. I changed all the functions under look-up, replacing "in" with "tmp" and now it works.
In short; look-up table checks the wrong player for the angle, causing it to malfunction.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.