EOS 2  1.1.0
Einfache Objektbasierte Sprache
ConcaveCornerRuntimeException.java
gehe zur Dokumentation dieser Datei
1 package de.lathanda.eos.game.geom;
2 
3 import de.lathanda.eos.base.math.Point;
4 import java.text.MessageFormat;
5 
14 public class ConcaveCornerRuntimeException extends RuntimeException {
15 
19  private static final long serialVersionUID = 26094915854422703L;
23  private int i;
27  Point pA;
31  Point pB;
35  Point pC;
36 
45  public ConcaveCornerRuntimeException(int i, Point pA, Point pB, Point pC) {
46  this.i = i;
47  this.pA = pA;
48  this.pB = pB;
49  this.pC = pC;
50  }
51 
57  @Override
58  public String toString() {
59  return MessageFormat.format(
60  "concave edge found at index {0}, with points {1}, {2}, {3}",
61  new Object[]{i, pA, pB, pC});
62  }
63 }
Impressum