A circle rolls around the perimeter of a square so that its circumference always touches the perimeter of the square. Describe the locus of the centre of the circle and its length.

If the circle now rolls around an equilateral triangle can you describe the locus of the centre of the circle now and its length?

circle rolling round a triangle