public class LineIntersectsResult
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LineIntersectsResult.Builder
Build a new
LineIntersectsResult instance and define its features by passing in
information through the offered methods. |
Modifier and Type | Method and Description |
---|---|
static LineIntersectsResult.Builder |
builder()
Builds a new instance of a lineIntersection.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.Double |
horizontalIntersection()
If the lines intersect, use this method to get the intersecting point
X value. |
boolean |
onLine1()
Determine if the intersecting point lands on line 1 or not.
|
boolean |
onLine2()
Determine if the intersecting point lands on line 2 or not.
|
LineIntersectsResult.Builder |
toBuilder()
Convert current instance values into another Builder to quickly change one or more values.
|
java.lang.String |
toString() |
java.lang.Double |
verticalIntersection()
If the lines intersect, use this method to get the intersecting point
Y value. |
public static LineIntersectsResult.Builder builder()
LineIntersectsResult.Builder
for creating a new instance@Nullable public java.lang.Double horizontalIntersection()
X
value.X
value where the lines intersect@Nullable public java.lang.Double verticalIntersection()
Y
value.Y
value where the lines intersectpublic boolean onLine1()
public boolean onLine2()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public LineIntersectsResult.Builder toBuilder()
LineIntersectsResult
using the newly defined values