TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Consider the following:

  \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);

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.

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
up vote 7 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

Your Answer


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.