net.sourceforge.plantuml.geom
Class LineSegmentInt
java.lang.Object
java.awt.geom.Line2D
net.sourceforge.plantuml.geom.AbstractLineSegment
net.sourceforge.plantuml.geom.LineSegmentInt
- All Implemented Interfaces:
- Shape, Cloneable
public class LineSegmentInt
- extends AbstractLineSegment
Methods inherited from class net.sourceforge.plantuml.geom.AbstractLineSegment |
determinant, doesIntersect, equals, getAngle, getBounds2D, getDistance, getDistance, getLength, getOppositeAngle, getPoint2D, hashCode, isHorizontal, isVertical, setLine, side, startTranslatedAsVector |
Methods inherited from class java.awt.geom.Line2D |
clone, contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine |
LineSegmentInt
public LineSegmentInt(int x1,
int y1,
int x2,
int y2)
LineSegmentInt
public LineSegmentInt(Point2DInt p1,
Point2DInt p2)
toString
public String toString()
- Overrides:
toString
in class Object
containsPoint
public boolean containsPoint(Point2D point)
side
public double side(Box box)
doesIntersectButNotSameExtremity
public boolean doesIntersectButNotSameExtremity(LineSegmentInt other)
sameExtremities
public boolean sameExtremities(LineSegmentInt other)
atLeastOneCommonExtremities
public boolean atLeastOneCommonExtremities(LineSegmentInt other)
getCommonExtremities
public Point2DInt getCommonExtremities(LineSegmentInt other)
getOtherExtremity
public Point2DInt getOtherExtremity(Point2DInt extremity1)
getP1
public Point2DInt getP1()
- Specified by:
getP1
in class Line2D
getP2
public Point2DInt getP2()
- Specified by:
getP2
in class Line2D
getX1
public double getX1()
- Specified by:
getX1
in class Line2D
getX2
public double getX2()
- Specified by:
getX2
in class Line2D
getY1
public double getY1()
- Specified by:
getY1
in class Line2D
getY2
public double getY2()
- Specified by:
getY2
in class Line2D
getTranslatedPoint
public Point2DInt getTranslatedPoint(Point2DInt pointToBeTranslated)
getCenter
public Point2DInt getCenter()
getMinX
public int getMinX()
getMaxX
public int getMaxX()
getMinY
public int getMinY()
getMaxY
public int getMaxY()
ortho
public Point2DInt ortho(Point2D.Double orig,
double d)
translate
public LineSegmentInt translate(int deltaX,
int deltaY)
inflateXAlpha
public LineSegmentInt inflateXAlpha(InflateData inflateData)
inflateYAlpha
public LineSegmentInt inflateYAlpha(InflateData inflateData)
getSegIntersection
public Point2DInt getSegIntersection(AbstractLineSegment other)
- Overrides:
getSegIntersection
in class AbstractLineSegment
Copyright © 2012. All Rights Reserved.