Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Consider the following:

\begin{tikzpicture}[thick,scale=0.8]
  \node  (v0) at (0,0) [label=right:$\emptyset$] {};
  \node (v1) at (40:-2)  [label=right:$v_1$] {};
  \node (v2) at (70:-1.6)  [label=right:$v_2$] {};
  \node (v3) at (110:-1.6)  [label=right:$v_3$] {};
  \node (v4) at (140:-2)  [label=right:$v_4$] {};
  \node (v5) at (50:-3.5)  [label=right:$v_5$] {};
  \draw  (v0)  --  (v1)
  (v0)  --  (v2)
  (v0)  --  (v3)
  (v0)  --  (v4)
  (v1)  --  (v5);
\end{tikzpicture}

Here coordinates are polar. How to use square?

share|improve this question

migrated from stackoverflow.com Mar 9 '12 at 7:15

This question came from our site for professional and enthusiast programmers.

2  
What do you mean? The first (0,0) you have for (v0) is in "square" coordinates (i.e. "cartesian coordinates")? –  mathematical.coffee Mar 9 '12 at 6:15
add comment

1 Answer

up vote 6 down vote accepted

The polar coordinates are (angle:radius), to transform them you can use x=radius*cosine(angle) and y=radius*sine(angle). These values you can use in cartesian coordinates, e.g. (x,y)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.