axmol
axmol copied to clipboard
Math optimizations
Mostly moves some trivial and commonly used methods in math classes to headers so that they can be inlined by compiler.
What is inl file?
Should I put definitions with declarations like so:
class Color {
void method() { doStuff(); }
};
or keep declarations clean and put definitions at the end of file like this:
class Color {
void method();
};
void Color::method() { doStuff(); }
or maybe something in between, like keep shorter definitions with declarations, but keep larger definitions at the end of file?
I prefer first one, less code