public void Draw(Graphics g, int mode)
{
//sets center to dome center
g.TranslateTransform(origoX, origoY);
//copy to temporary list of points
copy = new Point[pp.Length];
pp.CopyTo(copy, 0);
//calculates angle
angle = (mode / 100) * 180;
//calculates points to translate to
double xDistance = 125 * Math.Cos(angle);
double yDistance = 125 * Math.Sin(angle);
matrix.Rotate((float)angle, MatrixOrder.Append);
matrix.TransformPoints(copy);
//add distance to each point but does not work and is probably wrong anyway?
for (int i = 0; i < 3; i++)
pp[i].X += (int)xDistance;
pp[i].Y += (int)yDistance;
}
g.drawPolygon(pen, copy)