public static class LineIntersectsResult.Builder
extends java.lang.Object
LineIntersectsResult
instance and define its features by passing in
information through the offered methods.Modifier and Type | Method and Description |
---|---|
LineIntersectsResult |
build()
Builds a new instance of a
LineIntersectsResult class. |
LineIntersectsResult.Builder |
horizontalIntersection(java.lang.Double horizontalIntersection)
If the lines intersect, use this method to get the intersecting point
X value. |
LineIntersectsResult.Builder |
onLine1(boolean onLine1)
Determine if the intersecting point lands on line 1 or not.
|
LineIntersectsResult.Builder |
onLine2(boolean onLine2)
Determine if the intersecting point lands on line 2 or not.
|
LineIntersectsResult.Builder |
verticalIntersection(java.lang.Double verticalIntersection)
If the lines intersect, use this method to get the intersecting point
Y value. |
public LineIntersectsResult.Builder horizontalIntersection(@Nullable java.lang.Double horizontalIntersection)
X
value.horizontalIntersection
- the x coordinates intersection pointX
value where the lines intersectpublic LineIntersectsResult.Builder verticalIntersection(@Nullable java.lang.Double verticalIntersection)
Y
value.verticalIntersection
- the y coordinates intersection pointY
value where the lines intersectpublic LineIntersectsResult.Builder onLine1(boolean onLine1)
onLine1
- true if the points land on line one, else falsepublic LineIntersectsResult.Builder onLine2(boolean onLine2)
onLine2
- true if the points land on line two, else falsepublic LineIntersectsResult build()
LineIntersectsResult
class.LineIntersectsResult