Scaling a geometry proportionally

Hi
I need to scale a Rhino Geo imported inside GH.
The Geo need to be scaled proportionally following the length of a line.
how can I do that?