Skip to main content
Inspiring
May 5, 2019
Question

Add additional optional argument to Matrix.transformPoint(point:Point):Point function

  • May 5, 2019
  • 1 reply
  • 589 views

Hi Air team,

Can you please add optional result:Point argument to the Matrix.transformPoint(point:Point😞Point function so that function does not create new Point object every time is called if you pass a Point object as the second argument.

I have one library when that is using Matrix.transformPoint function a lot and it creates so much Point objects that it becomes so slow and unusable because gc is triggered all the time.

Thanks,

Caslav

This topic has been closed for replies.

1 reply

Inspiring
May 6, 2019

That method will never be changed but you can always write your own.

chakyAuthor
Inspiring
May 6, 2019

Hi ASWC,

What is the reason for that method to never change with optional argument that will not break backward compatibility?

Regards,

Caslav

Inspiring
May 6, 2019

Cos the AIR team would have to change it not only for AIR but for all platforms, too much work for them. They are working on essential only now.