Sleitnick / AeroGameFramework

AeroGameFramework is a Roblox game framework that makes development easy and fun. The framework is designed to simplify the communication between modules and seamlessly bridge the gap between the server and client.
https://sleitnick.github.io/AeroGameFramework/
MIT License
215 stars 57 forks source link

Simplified VectorUtil.ClampMagnitude #202

Closed Fireboltofdeath closed 4 years ago

Fireboltofdeath commented 4 years ago

VectorUtil had a redundant ternary operation that could be made simpler. Functionally it's the same, except it looks cleaner and has a very small performance increase.

EDIT: small performance boost was only when magnitude exceeded max magnitude, so I've closed this PR