let sideLength = this.sideLength || this.radius,
sides = this.sides,
turn = 360 / sides,
myPath = ``,
yPts = [],
currentY = 0,
myMax, myMin, myYoffset;
let v = requestVector({x: 0, y: -sideLength});
for (let i = 0; i < sides; i++) {
v.rotate(turn);
currentY += v.y;
yPts.push(currentY);
myPath += `${v.x.toFixed(1)},${v.y.toFixed(1)} `;
}
releaseVector(v);
myMin = Math.min(...yPts);
myMax = Math.max(...yPts);
myYoffset = (((Math.abs(myMin) + Math.abs(myMax)) - sideLength) / 2).toFixed(1);
myPath = `m0,${myYoffset}l${myPath}z`;
return myPath;
};