public class LineIntersectsResult
extends java.lang.Object
| Constructor and Description |
|---|
LineIntersectsResult()
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getX()
If the lines intersect, use this method to get the intersecting points
X value |
java.lang.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(java.lang.Double x)
Set the points
X value where the two lines should intersect. |
void |
setY(java.lang.Double y)
Set the points
Y value where the two lines should intersect. |
public LineIntersectsResult()
public java.lang.Double getX()
X valueX value where the lines intersect.public void setX(java.lang.Double x)
X value where the two lines should intersect.x - Double value representing the intersecting X coordinate.public java.lang.Double getY()
Y valueY value where the lines intersect.public void setY(java.lang.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.