1
2
3
4
5
6
7
8
9 package math.geom2d;
10
11
12
13
14
15
16 public class ColinearPointsException extends RuntimeException {
17
18 protected Point2D p1;
19 protected Point2D p2;
20 protected Point2D p3;
21
22
23
24
25 private static final long serialVersionUID = 1L;
26
27 public ColinearPointsException(Point2D p1, Point2D p2, Point2D p3) {
28 this.p1 = p1;
29 this.p2 = p2;
30 this.p3 = p3;
31 }
32
33 public Point2D getP1() {
34 return p1;
35 }
36
37 public Point2D getP2() {
38 return p2;
39 }
40
41 public Point2D getP3() {
42 return p3;
43 }
44 }