/**
* Line Class - Two Points
*
* @author Jared Burke
* @version 8.22.06
*/
//references
import java.lang.Math;
import java.util.Random;
public class Line
{
private Point x;
private Point y;
////////////////
//CONSTRUCTORS//
////////////////
/**
* Creates a line from four doubles making up the x and y coordinates of two new points.
*
* @param Point 1 x-coordinate
* @param Point 1 y-coordinate
* @param Point 2 x-coordinate
* @param Point 2 y-coordinate
*/
public Line(double _x1, double _y1, double _x2, double _y2) {}
/**
* Creates a line from two Point objects on a two-dimensional plane
*
* @param Point 1
* @param Point 2
*/
public Line(Point xPoint, Point yPoint) {}
/**
* Creates a line from one point and two coordinates
*
* @param Point 1
* @param x coord
* @param y coord
*/
public Line(Point xPoint, double _x, double _y) {}
/**
* Creates a random line from maximum specifications
* If 0 for either, max defaults to 100.
*
* @param max x value (defines + and - ends)
* @param max y value (defines + and - ends)
*/
public Line(int maxX, int maxY){ }
/////////////
//ACCESSORS//
/////////////
/**
* Returns the first point of the line
* @return a point object representing one end of the line.
*/
public Point GetPtA() {}
/**
* Returns the second point of the line
* @return a point object representing one end of the line.
*/
public Point GetPtB() {}
//////////////
//PROCESSORS//
//////////////
/**
* Returns the Slope of the line
* @return Slope of the line
*/
public double Slope() {}
/**
* Returns the Distance of the line
* @return Distance of the line
*/
public double Distance() {}
/**
* Returns the Midpoint of the line
* @return Midpoint of the line
*/
public Point Midpoint() {}
/**
* Tells if the line is horizontal or not
* @return true or false if the line is horizontal or not
*/
public boolean IsHorizontal() {}
/**
* Tells if the line is vertical or not
* @return true or false if the line is vertical or not
*/
public boolean IsVertical() {}
/**
* Returns true or false if the line intersects the X-Axis.
* @return true or false if it intersects the X-Axis
*/
public boolean CrossesX() {}
/**
* Returns true or false if the line intersects the Y-Axis.
* @return true or false if it intersects the Y-Axis
*/
public boolean CrossesY() { }
}