[MATH] distance in X between two parallel lines

Hey everyone, I ran into a math problem, I hope someone can help me out

When the distance of two parallel lines is given and the angle of those lines with the Y axis is also known I want to know the distance in x

Anyone ? thnx

What about pitagoras? I mean, trace a line perpendicular to both paralels. Then trace a line with the given angle from one of the new vertex. This should give to you a triangle and you know all angles (the rect one, the one given and its supplementary) and one of the cathetus, so you should be able to calculate the hypotenuse, can't you?

I'm not able to doodle now but I hope you can picture it.

Distracting... I think it's x = d / cos(phi).

Edit: beaten.

Edit2: We need a sketch:

{"name":"610966","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/c\/ec67707f7a1439cd8c62ba6517fbbef9.png","w":437,"h":357,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/c\/ec67707f7a1439cd8c62ba6517fbbef9"}

So:

and

Thanks a lot !

Polybios said:

Edit2: We need a sketch:

Just **that**. Thank you.