Simplify rmgen code with vector algebra
|Reported by:||elexis||Owned by:|
|Priority:||Should Have||Milestone:||Alpha 23|
Description (last modified by )
In a number of locations in the rmgen library we have equations that are duplicated for each dimension and equations that are the result of vector algebra, but written in an obfuscated way.
By using the Vector2D operations, these functions can become both much shorter and have their geometric meaning expressed instead of the way these are computed.
Thus making it easier for new readers to comprehend and extend the given piece of code.
We should consider switching from X/Y Vectors to X/Z ones: #4834.