| Package | Description | 
|---|---|
| java.awt.geom | Provides the Java 2D classes for defining and performing operations
on objects related to two-dimensional geometry. | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Line2D.DoubleA line segment specified with double coordinates. | 
| static class  | Line2D.FloatA line segment specified with float coordinates. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | Line2D. intersectsLine(Line2D l)Tests if the specified line segment intersects this line segment. | 
| boolean | Rectangle2D. intersectsLine(Line2D l)Tests if the specified line segment intersects the interior of this
  Rectangle2D. | 
| void | Line2D. setLine(Line2D l)Sets the location of the end points of this  Line2Dto
 the same as those end points of the specifiedLine2D. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.