 /**
 * Triangle.java
 *
 * (c) DIT-UC3M 2008
 *
 */


public class Triangle extends Figure {

  /** Vertexes of the triangle*/
  private Point vertex1;
  private Point vertex2;
  private Point vertex3;

  /** Constructor of a triangle with a name. Their vertexes are taken
   * from the command line */
  public Triangle(String name) {
  
  }
  
  /** Constructor of a triangle with their vertexes*/
  public Triangle(String name, Point vertex1, Point vertex2, Point vertex3) {


  }

  /** Returns an array with the lenght of every edge of the triangle*/
  public double[] edgesLength() {
    double edgesLength[] = new double[3];
 
    // Length 1->2
    edgesLength[0] = vertex1.distance(vertex2);  
    // Length 2->3
    edgesLength[1] = vertex2.distance(vertex3);
    // Length 3->1
    edgesLength[2] = vertex3.distance(vertex1);

    return edgesLength;
  }
  
  /** Implementation of the abstract method to calculate the triangle area.*/
  public double area() {
	return 0.0;
  }
  
  /** Implementation of the abstract method to indicate if the triangle is regular.*/
  public boolean isRegular(){
	return false;
  }
  
  /** Returns a representative string of the triangle. */
  public String toString() {
	return null;
  }
}
