package cse1030; /** * A simple triangle class where a Triangle is an aggregation of three Point * objects. * * @author CSE1030 * */ public class Triangle { private Point pA; private Point pB; private Point pC; public Triangle() { this(new Point(0., 0., 0.), new Point(0., 1., 0.), new Point(1., 0., 0.)); } public Triangle(Point a, Point b, Point c) { this.pA = a; this.pB = b; this.pC = c; } public Triangle(Triangle other) { this(other.pA, other.pB, other.pC); } public Point getA() { return this.pA; } public void setA(Point a) { this.pA = a; } public Point getB() { return this.pB; } public void setB(Point b) { this.pB = b; } public Point getC() { return this.pC; } public void setC(Point c) { this.pC = c; } }