rotate(angle = 0, center = new Flatten.Point()) {
        let newPolygon = new Polygon();
        for (let face of this.faces) {
            newPolygon.addFace(face.shapes.map(shape => shape.rotate(angle, center)));
        }
        return newPolygon;
    }
/**
     * Return new polygon rotated by given angle around given point
     * If point omitted, rotate around origin (0,0)
     * Positive value of angle defines rotation counter clockwise, negative - clockwise
     * @param {number} angle - rotation angle in radians
     * @param {Point} center - rotation center, default is (0,0)
     * @returns {Polygon} - new rotated polygon
     */
Return new polygon rotated by given angle around given point
If point omitted, rotate around origin (0,0)
Positive value of angle defines rotation counter clockwise, negative - clockwise
@param {number} angle - rotation angle in radians
@param {Point} center - rotation center, default is (0,0)
@returns {Polygon} - new rotated polygon
Return new polygon rotated by given angle around given point If point omitted rotate around origin ( 0 0 ) Positive value of angle defines rotation counter clockwise negative - clockwise @param { number } angle - rotation angle in radians @param { Point } center - rotation center default is ( 0 0 ) @returns { Polygon } - new rotated polygon
rotate(angle = 0, center = new Flatten.Point()) {
        let newPolygon = new Polygon();
        for (let face of this.faces) {
            newPolygon.addFace(face.shapes.map(shape => shape.rotate(angle, center)));
        }
        return newPolygon;
    }
rotate ( angle = 0 , center = new Flatten . Point ( ) ) { let newPolygon = new Polygon ( ) ; for ( let face of this . faces ) { newPolygon . addFace ( face . shapes . map ( shape => shape . rotate ( angle , center ) ) ) ; } return newPolygon ; }
Return new polygon rotated by given angle around given point
 If point omitted, rotate around origin (0,0)
 Positive value of angle defines rotation counter clockwise, negative - clockwise
 @param {number} angle - rotation angle in radians
 @param {Point} center - rotation center, default is (0,0)
 @returns {Polygon} - new rotated polygon
Return new polygon rotated by given angle around given point If point omitted rotate around origin ( 0 0 ) Positive value of angle defines rotation counter clockwise negative - clockwise @param { number } angle - rotation angle in radians @param { Point } center - rotation center default is ( 0 0 ) @returns { Polygon } - new rotated polygon