(Minor optimization) Matrix4x4::CreateTranslation Vector3 -> 3xFloat
FrozenKiwi opened this issue · 0 comments
FrozenKiwi commented
Title says it all.
Minor optimization:
public static Matrix4x4 CreateTranslation(Vector3 position) should forward to
public static Matrix4x4 CreateTranslation(float float float)
Doing it that way around avoids the allocation of a new Vector3. This may be handled by the compiler, I don't know - but just in case it's good to avoid allocations.