public class LineSegment2D extends Object
Constructor and Description |
---|
LineSegment2D(Point2D point1,
Point2D point2) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Point2D |
getA() |
Point2D |
getB() |
int |
hashCode() |
static LineSegment2D |
of(double x1,
double y1,
double x2,
double y2) |
String |
toString() |
public static LineSegment2D of(double x1, double y1, double x2, double y2)
public Point2D getA()
public Point2D getB()
Copyright © 2018. All rights reserved.