packages/core/dist/commonjs/index.js
function () {
            var translateFraction = this.translationFraction;
            var x = this.startPosition.x;
            var y = this.startPosition.y;
            if (this.endPosition.x) {
                x = this.startPosition.x + translateFraction * (this.endPosition.x - this.startPosition.x);
            }
            if (this.endPosition.y) {
                y = this.startPosition.y + translateFraction * (this.endPosition.y - this.startPosition.y);
            }
            return { x: x, y: y };
        }
function () {
            var translateFraction = this.translationFraction;
            var x = this.startPosition.x;
            var y = this.startPosition.y;
            if (this.endPosition.x) {
                x = this.startPosition.x + translateFraction * (this.endPosition.x - this.startPosition.x);
            }
            if (this.endPosition.y) {
                y = this.startPosition.y + translateFraction * (this.endPosition.y - this.startPosition.y);
            }
            return { x: x, y: y };
        }
function ( ) { var translateFraction = this . translationFraction ; var x = this . startPosition . x ; var y = this . startPosition . y ; if ( this . endPosition . x ) { x = this . startPosition . x + translateFraction * ( this . endPosition . x - this . startPosition . x ) ; } if ( this . endPosition . y ) { y = this . startPosition . y + translateFraction * ( this . endPosition . y - this . startPosition . y ) ; } return { x : x , y : y } ; }
Gets the wave's current position.
@returns {{x: Number, y: Number}} Object containing coordinates of the wave's current position.
Gets the wave s current position .