alexmarinescu / pygamemath Goto Github PK
View Code? Open in Web Editor NEWMath library for game programming in python.
License: Other
Math library for game programming in python.
License: Other
Vector, Matrix, Quaternion need to be rewritten and use proper OOP instead of functional structure as it is now plus a lot of bug fixes, mostly spelling errors and style.
It would seem you're encoding translation in the last row of a matrix but multiplying as if it were stored in the last column. e.g.
>>> matrix.Matrix(3).translate(vector.Vector(3, data=[35, -60, 1])) * vector.Vector(3, data=[0, 0, 1])
Vector: size:3 , data:[0.0, 0.0, 1.0]
The result of that multiplication really ought to be a vector (35, -60, 1).
It's also incorrect that a 3x3 matrix requires a 3D vector for translation, it should take a 2D vector. In the above example I had to add an extra 1 to the end of my translation vector.
Update the experimental section of the library, in other words I have to redo the entire Spherical Harmonics section.
setup.py still shows version as 0.1.10 instead of 0.1.11
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.