terrehbyte / terrehbyte-math-library Goto Github PK
View Code? Open in Web Editor NEWGame Math Library - Student Project @ AIE
Home Page: https://github.com/terrehbyte/terrehbyte-math-library/wiki
License: Other
Game Math Library - Student Project @ AIE
Home Page: https://github.com/terrehbyte/terrehbyte-math-library/wiki
License: Other
Operators such as '+=' or '*=' are destructive and therefore need not return a value.
tbyte::Vector4 Matrix4::Scale(const tbyte::Vector4 a_Vector)
{
tbyte::Vector4 temp;
temp.fX = a_Vector.fX * m_afArray[0][0] + a_Vector.fY * 0 + a_Vector.fZ * 0 + a_Vector.fW * 0;
temp.fY = a_Vector.fX * 0 + a_Vector.fY * m_afArray[1][1] + a_Vector.fZ * 0 + a_Vector.fW * 0;
temp.fZ = a_Vector.fX * 0 + a_Vector.fY * 0 + a_Vector.fZ * m_afArray[2][2] + a_Vector.fW * 0;
temp.fW = a_Vector.fX * 0 + a_Vector.fY * 0 + a_Vector.fZ * 0 + a_Vector.fW * m_afArray[3][3];
return temp;
}
Does that really need to reference all of those zeros? Couldn't it just directly set temp.fX to something like:
temp.fX = a_Vector.fX * m_afArrray[0][0];
The same goes for the rest of specialized transformation actions.
Properly integrate Travis.CI for continuous integration purposes. Benefits include faster integration of pull requests and better code stability.
Since Vector4's variables were reordered in commit 2e8a8f1 , its ctor with the four floats should be changed to reflect that.
In addition, a copy constructor should be provided for it.
Allow smaller VectorX to be stored in larger VectorX types by creating type conversions for these classes.
The math library needs to have tests written to ensure that future additions made haphazardly won't break everything.
This idea stems from the idea of "emplace_back" for C++ std library's containers. It'd be awfully convenient if we could just create and apply something in one step rather than creating the transformation matrix and then applying the corresponding transformation matrix. We could even feed it arguments to create on on the fly!
The procedure for filing issues and making contributions to the project should be rewritten to note changes in policy.
Create matrices that can be used for orthographic projection.
Error 1 error LNK2019: unresolved external symbol "float __cdecl tbyte::LERP(float,float,float)" (?LERP@tbyte@@Yammmm@Z) referenced in function _main C:\Users\Student\Documents\Visual Studio 2010\Projects\MathLibTestCase\main.obj
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.