0
$\begingroup$

Let's say I have a triangle (just a basic equilateral). What I'd like to do is render it by specifying its radius and center, and then calculate the vertices from there.

What is the formula for this? This object will not be static, as I will be altering its position multiple times.

Edit

I should also note that this is on a Cartesian coordinate system.

  • 0
    In the complex plane, its vertices should be $C+R.e^{\iota(\theta+2\pi k/3)}=(x_c+R\cos(\theta+2\pi k/3),y_c+R\sin(\theta+2\pi k/3))$ for $k=0,1,2.$2012-05-26
  • 0
    Is C and R Matrices or vectors?2012-05-27
  • 1
    $R$ is your radius and $C=(x_c,y_c)$ is your center.2012-05-27

1 Answers 1