I have a line called $AB$ with the points $A (40, 40)$ and $B (280, 40)$. I have an angle $D\simeq 48^\circ$.
I want to draw a line $CE$ from the center of the line $AB$, which is $C (160, 40)$ with the given angle $D$.
Something like,
I have the line $AB$, the point $C$, and angle $D$. How can I find the point $E$, which is anywhere on the line of intersection with the given values?
In my analysis, I need to find out the slope of the new line first and then we need to get points of the line.
If that is right, how can I get the slope of the new line, which is intersecting given line?
If wrong what would be the right way?
Thanks.


I have made some calculation, hope this works.
Given that, $A(40,40)$ and $B(280,40)$ endpoints of the line $AB$, $C(160,40)$ is the midpoint of $AB$. Angle has given $D=48^\circ$ then the required line that passes through $C$ having slope $\tan(\pi-48^\circ)$ is, $$y-40=\tan(\pi-48^\circ)(x-160)$$ $$\text{i.e. }y-40=-\tan(48^\circ)(x-160)$$ any point on this line can be treated as $E$.