[pstricks] Points of Intersection

Christoph Bersch usenet at bersch.net
Wed Mar 18 21:50:10 CET 2009


David Arnold wrote:
> 
> Now, in pstricks I could do some trig, come up with some angles, and  
> use a polar coordinate representation of the point C.
> 
> What I am wondering is this: Is there a slicker way of accomplishing  
> this goal of drawing a triangle with sides 4, 5, and 6 units?

Yes, you can use pst-eucl and construct the triangle like you would do
with geogebra:

\documentclass{article}
\usepackage{pst-eucl}

\begin{document}
\begin{pspicture}[showgrid=true](7,8)
  \pstGeonode(0,4){A}(6,4){B}
  \pstInterCC[RadiusA=\pstDistVal{4},
              RadiusB=\pstDistVal{5}]{A}{}{B}{}{M}{N}
  \pspolygon(A)(B)(M)
\end{pspicture}

\bigskip

\begin{pspicture}[showgrid=true](7,4)
  \pnode(0,0){A}
  \pnode(6,0){B}
  \pstInterCC[PointSymbol=none,
              PointName=none,
              RadiusA=\pstDistVal{4},
              RadiusB=\pstDistVal{5}]{A}{}{B}{}{M}{N}
  \pspolygon(A)(B)(M)
\end{pspicture}
\end{document}


HTH,
Christoph


More information about the PSTricks mailing list