public class LineIntersectsResult extends Object
Constructor and Description |
---|
LineIntersectsResult()
Public constructor
|
Modifier and Type | Method and Description |
---|---|
Double |
getX()
If the lines intersect, use this method to get the intersecting points
X value |
Double |
getY()
If the lines intersect, use this method to get the intersecting points
Y value |
boolean |
isOnLine1()
Determine if the intersecting point lands on line 1 or not.
|
boolean |
isOnLine2()
Determine if the intersecting point lands on line 2 or not.
|
void |
setOnLine1(boolean onLine1)
Set whether the intersecting point should land on line 1.
|
void |
setOnLine2(boolean onLine2)
Set whether the intersecting point should land on line 2.
|
void |
setX(Double x)
Set the points
X value where the two lines should intersect. |
void |
setY(Double y)
Set the points
Y value where the two lines should intersect. |
public LineIntersectsResult()
public Double getX()
X
valueX
value where the lines intersect.public void setX(Double x)
X
value where the two lines should intersect.x
- Double value representing the intersecting X
coordinate.public Double getY()
Y
valueY
value where the lines intersect.public void setY(Double y)
Y
value where the two lines should intersect.y
- Double value representing the intersecting Y
coordinate.public boolean isOnLine1()
public void setOnLine1(boolean onLine1)
onLine1
- True if you want the intersecting point to lie on line 1, otherwise pass in
false.public boolean isOnLine2()
public void setOnLine2(boolean onLine2)
onLine2
- True if you want the intersecting point to lie on line 2, otherwise pass in
false.© 2015–2016 Mapbox. All rights reserved.