Download

FVector2D::UnitVector is not a unit vector

This variable name in UnrealMath.cpp is confusing: FVector2D::UnitVector(1.0f, 1.0f); is not a unit vector. It is used in some dozens of places in the engine. What might be a lesser misleading name for that, though? Maybe FVector2D::OneVector like FVector::OneVector(1.0f, 1.0f, 1.0f)?

Yeah, probably should be changed - submit a PR! I expect a fair few files will have to be changed to take the naming update though.

Ok will do, thanks for the heads up!

@TheJamsh Finally I had time to create the PullRequest: https://github.com/EpicGames/UnrealEngine/pull/5001