package ru.stqa.pft.sandbox;

/**
 * Created by dkustikov on 19.10.2016.
 */
public class TwoPoints {
  double x1;
  double x2;
  double x3;
  double x4;

  public TwoPoints(double x1, double x2, double x3, double x4) {
    this.x1 = x1;
    this.x2 = x2;
    this.x3 = x3;
    this.x4 = x4;
  }

  public double distance() {
    return Math.sqrt((x3 - x1) * (x3 - x1) + (x4 - x2) * (x4 - x2));
  }
}
