public abstract class AbstractLineSegment
extends java.awt.geom.Line2D
Constructor and Description |
---|
AbstractLineSegment() |
Modifier and Type | Method and Description |
---|---|
double |
determinant(AbstractLineSegment other) |
boolean |
doesIntersect(AbstractLineSegment other) |
boolean |
equals(java.lang.Object obj) |
double |
getAngle() |
java.awt.geom.Rectangle2D |
getBounds2D() |
double |
getDistance(AbstractLineSegment other) |
double |
getDistance(java.awt.geom.Point2D f) |
double |
getIntersectionHorizontal(double yOther) |
double |
getIntersectionVertical(double xOther) |
double |
getLength() |
double |
getOppositeAngle() |
protected java.awt.geom.Point2D.Double |
getPoint2D(double u) |
java.awt.geom.Point2D |
getSegIntersection(AbstractLineSegment other) |
int |
hashCode() |
boolean |
isHorizontal() |
boolean |
isPointOnSegment(java.awt.geom.Point2D pt) |
boolean |
isVertical() |
void |
setLine(double x1,
double y1,
double x2,
double y2) |
double |
side(java.awt.geom.Point2D point) |
java.awt.geom.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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public final double getLength()
protected final java.awt.geom.Point2D.Double getPoint2D(double u)
public final double getDistance(java.awt.geom.Point2D f)
public java.awt.geom.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)
setLine
in class java.awt.geom.Line2D
public final java.awt.geom.Rectangle2D getBounds2D()
public final boolean isHorizontal()
public final boolean isVertical()
public final double getDistance(AbstractLineSegment other)
public boolean isPointOnSegment(java.awt.geom.Point2D pt)
public final double getAngle()
public final double getOppositeAngle()
public final java.awt.geom.Point2D.Double startTranslatedAsVector(double u)
public boolean doesIntersect(AbstractLineSegment other)
public double determinant(AbstractLineSegment other)
public double side(java.awt.geom.Point2D point)
Copyright © 2020. All Rights Reserved.