hey,
I'm trying to generate a sin wave line to the mouse position.

I can make a straight line to the mouse point and a sin wave along a set line. But I'm struggling in using the equation of the line to the mouse point so that I can make a sin wave on it.
please can you help me
thanks