followOrbit() {
        // Calculate coordinates
        const newXCoordinate = this._x +
            (COS_VALUES[this.currentAngleIndex] * this._radius);
        const newYCoordinate = this._y +
            (SIN_VALUES[this.currentAngleIndex] * this._radius);

        // Handle setup for next calculation
        this.currentAngleIndex++;
        if (this.currentAngleIndex === SIN_VALUES.length) {
            this.currentAngleIndex = 0;
        } // if

        return { x: newXCoordinate, y: newYCoordinate };
    } // followOrbit
/**
     * Returns the next x and y coordinate on the path
     * in order to reach the next unit circle defined
     * point in this.travelFactor amount of frames.
     * @return an object with x and y properties
     *         that move along this Orbit's path
     */
Returns the next x and y coordinate on the path
in order to reach the next unit circle defined
point in this.travelFactor amount of frames.
@return an object with x and y properties
that move along this Orbit's path
Returns the next x and y coordinate on the path in order to reach the next unit circle defined point in this . travelFactor amount of frames . @return an object with x and y properties that move along this Orbit ' s path
followOrbit() {
        const newXCoordinate = this._x +
            (COS_VALUES[this.currentAngleIndex] * this._radius);
        const newYCoordinate = this._y +
            (SIN_VALUES[this.currentAngleIndex] * this._radius);
        this.currentAngleIndex++;
        if (this.currentAngleIndex === SIN_VALUES.length) {
            this.currentAngleIndex = 0;
        } 
        return { x: newXCoordinate, y: newYCoordinate };
    } 
followOrbit ( ) { const newXCoordinate = this . _x + ( COS_VALUES [ this . currentAngleIndex ] * this . _radius ) ; const newYCoordinate = this . _y + ( SIN_VALUES [ this . currentAngleIndex ] * this . _radius ) ; this . currentAngleIndex ++ ; if ( this . currentAngleIndex === SIN_VALUES . length ) { this . currentAngleIndex = 0 ; } return { x : newXCoordinate , y : newYCoordinate } ; }
Returns the next x and y coordinate on the path
 in order to reach the next unit circle defined
 point in this.travelFactor amount of frames.
Returns the next x and y coordinate on the path in order to reach the next unit circle defined point in this . travelFactor amount of frames .
// Calculate coordinates // Handle setup for next calculation // if // followOrbit