public abstract class AbstractLineSegment extends Line2D
Line2D.Double, Line2D.Float
Constructor and Description |
---|
AbstractLineSegment() |
Modifier and Type | Method and Description |
---|---|
double |
determinant(AbstractLineSegment other) |
boolean |
doesIntersect(AbstractLineSegment other) |
boolean |
equals(Object obj) |
double |
getAngle() |
Rectangle2D |
getBounds2D() |
double |
getDistance(AbstractLineSegment other) |
double |
getDistance(Point2D f) |
double |
getIntersectionHorizontal(double yOther) |
double |
getIntersectionVertical(double xOther) |
double |
getLength() |
double |
getOppositeAngle() |
protected Point2D.Double |
getPoint2D(double u) |
Point2D |
getSegIntersection(AbstractLineSegment other) |
int |
hashCode() |
boolean |
isHorizontal() |
boolean |
isVertical() |
void |
setLine(double x1,
double y1,
double x2,
double y2) |
double |
side(Point2D point) |
Point2D.Double |
startTranslatedAsVector(double u) |
clone, contains, contains, contains, contains, getBounds, getP1, getP2, getPathIterator, getPathIterator, getX1, getX2, getY1, getY2, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine
public final double getLength()
protected final Point2D.Double getPoint2D(double u)
public final double getDistance(Point2D f)
public Point2D getSegIntersection(AbstractLineSegment other)
public double getIntersectionVertical(double xOther)
public double getIntersectionHorizontal(double yOther)
public final void setLine(double x1, double y1, double x2, double y2)
public final Rectangle2D getBounds2D()
public final boolean isHorizontal()
public final boolean isVertical()
public final double getDistance(AbstractLineSegment other)
public final double getAngle()
public final double getOppositeAngle()
public final Point2D.Double startTranslatedAsVector(double u)
public boolean doesIntersect(AbstractLineSegment other)
public double determinant(AbstractLineSegment other)
public double side(Point2D point)
Copyright © 2015. All Rights Reserved.