if (this.endPosition.x) {
            x = this.startPosition.x + translateFraction * (this.endPosition.x - this.startPosition.x);
        }