horizontal and vertical maximum
convenient methods
line line intersection
java-doc