Description: Write a line class MyLine requirements are as follows:
The main attributes are: e1, e2 endpoint of type Point
Write the constructor method, such as (Point p1 is, Point p2)
Write the member method. Such as:
Check the line is in the first quadrant of the check ...
Length and segment length () ...
Judge two segments (non-extension cable) whether the intersection (another segment as a parameter).
Request to point to the distance of the line (or extension cord)
The preparation of test procedures
The user to enter segments coordinate to construct a line segment
User to select which method need to execute a written (to judge whether the intersection)
According to the user to select the method requires the user to enter the coordinates of the point or segment two coordinates, and feedback to the user results.
To Search:
File list (Check if you may need any files):
MyLine.java