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()
Shape
getBasePoints
in interface Shape
List
consisting of shape's base points.
Copyright © 1998–2016. All rights reserved.