Custom scale

Hello guys.

I have one problem with custom object scaling and need some tips.

For example I have circle

When it hits some object I need to scale it properly. Like this

I mean scale circle without rotating it. I can’t do that with just scaleX and scaleY. Maybe someone can suggest some transformation tips or something that could help me