[pstricks] perpendicular line segment

Michael Sharpe msharpe at ucsd.edu
Thu Sep 25 18:29:59 CEST 2008


You can use \SpecialCoor for this. Example: Line PR through P  
perpendicular to PQ.

\SpecialCoor
\pnode(1,1){P}\pnode(4,2){Q}
\psline(P)(Q)
%use node pair relative coordinate, so offset is coord normal to PQ
\pnode([offset=3]{Q}P){R}
\psline(P)(R)

On Sep 25, 2008, at 9:05 AM, Doris Wagner wrote:

> hi list,
>
> I have a line defined by 2 points (with pst-eucl). now I want to
> construct a perpendicular line segment through one of these points.
> as far as I know there is only the possibility to construct a
> perpendicular line through the middle of the given line segment.
> one could of course reflect one of the given points by the other and
> then construct apply \pstMediatorAB, but I'd like to know if this can
> be avoided.
>
> so, is there a direct way to get this perpendicular line?




More information about the PSTricks mailing list