OfficerYoda / Fhysics

A Physics simulation
MIT License
0 stars 0 forks source link

Use inline functions #81

Open OfficerYoda opened 2 weeks ago

OfficerYoda commented 2 weeks ago

Some small frequently used functions can be made inline to increase performance.

OfficerYoda commented 4 days ago

The usecase i thought of when creating this issue were the world to screen/screen to world conversion methods in RenderUtil.kt. From what i think know it would be better to just have extension functions of the Vector2 class which are called: toScreenSpace and toWorldSpace.