All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gnu.x11.Segment Maven / Gradle / Ivy

Go to download

Escher is a collection of libraries for X Window System written purely in Java.

The newest version!
package gnu.x11;


/** Line segment in geometry. */
public class Segment {
  public int x1, y1, x2, y2;


  public Segment (int x1, int y1, int x2, int y2) {
    this.x1 = x1;
    this.y1 = y1;
    this.x2 = x2;
    this.y2 = y2;
  }


  public String toString () {
    return "#Segment [(" + x1 + ", " + y1 + ") ( " + x2 + ", " + y2 + ")";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy