I am trying to draw a line in an angle (perpendicular to the line it’s starting from). Below is an example of what I am trying to achieve. In the below example the left line is drawn off the dotted line, it is perpendicular to the dotted line.
In my c# code I have the following
doc.Objects.AddLine(new Line(topInterL, new Point3d(topInterL.X - (90 - topAngle), topInterL.Y + perimeterOffset, 0)));
topInterL - it holds the point of intersection between the folded line and the line am trying to draw.
topAngle - The angle of the folded line
Hope you can understand what I have already done, I am just getting the ‘X’ value of the intersection point and then reducing it by the calculated angle. However, this approach is not working for me.
What I am doing wrong here?