flame icon indicating copy to clipboard operation
flame copied to clipboard

`Component.absoluteCenter` creates at least two new `Vector2` objects

Open spydon opened this issue 3 years ago • 0 comments

What could be improved

Currently Component.absoluteCenter creates at least two Vector2 objects. Maybe we could pass in an optional Vector2? out argument that can be used if it is defined.

Why should this be improved

To improve performance.

Any risks?

Less readable method signature.

More information

spydon avatar Jul 08 '22 12:07 spydon