axmol icon indicating copy to clipboard operation
axmol copied to clipboard

Math optimizations

Open smilediver opened this issue 1 year ago • 1 comments

Mostly moves some trivial and commonly used methods in math classes to headers so that they can be inlined by compiler.

smilediver avatar Aug 28 '24 17:08 smilediver

What is inl file?

paulocoutinhox avatar Aug 29 '24 14:08 paulocoutinhox

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?

smilediver avatar Aug 30 '24 10:08 smilediver

I prefer first one, less code

halx99 avatar Aug 30 '24 11:08 halx99