Class Line
java.lang.Object
davidmarino.model.mapmodels.Line
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawLine
(Graphics2D g2, Line line, Color color) Draws line using render library Graphics2D.Finds the bisector line of this line and returns it as a new line.toString()
-
Field Details
-
A
-
B
-
m
public double mThe slope of segment AB. -
b
public double bThe y index of segment AB. -
isVertical
public boolean isVertical
-
-
Constructor Details
-
Line
-
Line
-
-
Method Details
-
findBisector
Finds the bisector line of this line and returns it as a new line.- Returns:
Line
-
drawLine
Draws line using render library Graphics2D.- Parameters:
g2
- is the render libraryline
- to be renderedcolor
- of the line
-
toString
-