| Constructor and Description |
|---|
Line()
Constructs a new zero-length line starting at zero.
|
Line(float x1,
float y1,
float x2,
float y2)
Constructs a new line based on the given coordinates.
|
Line(Point2D p1,
Point2D p2)
Constructs a new line based on the given coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
List<Point2D> |
getBasePoints()
Treat base points as the points which are enough to construct a shape.
|
public Line()
public Line(float x1,
float y1,
float x2,
float y2)
public List<Point2D> getBasePoints()
ShapegetBasePoints in interface ShapeList consisting of shape's base points.Copyright © 2020. All rights reserved.