|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.geom.Intersection
public final class Intersection
| Field Summary | |
|---|---|
protected Double |
intersectionLength
|
protected Vec4 |
intersectionPoint
|
protected Position |
intersectionPosition
|
protected boolean |
isTangent
|
protected Object |
object
|
| Constructor Summary | |
|---|---|
Intersection(Vec4 intersectionPoint,
boolean isTangent)
Constructs an Intersection from an intersection point and tangency indicator. |
|
Intersection(Vec4 intersectionPoint,
double intersectionLength,
boolean isTangent)
Constructs an Intersection from an intersection point and tangency indicator. |
|
Intersection(Vec4 intersectionPoint,
Position intersectionPosition,
boolean isTangent,
Object object)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Double |
getIntersectionLength()
The parametric length along the intersection geometry. |
Vec4 |
getIntersectionPoint()
Returns the intersection point. |
Position |
getIntersectionPosition()
Returns the intersection position if one has been set. |
Object |
getObject()
Returns the object associated with the intersection. |
int |
hashCode()
|
boolean |
isTangent()
Indicates whether the intersection is tangent to the object intersected. |
void |
setIntersectionPoint(Vec4 intersectionPoint)
Specifies the intersection point. |
void |
setIntersectionPosition(Position intersectionPosition)
Specifies the intersection position, which should be a position computed from the intersection point. |
void |
setObject(Object object)
Specifies the object to associate with the intersection. |
void |
setTangent(boolean tangent)
Specifies whether the intersection is tangent to the object intersected. |
static Queue<Intersection> |
sort(Vec4 refPoint,
List<Intersection> listA,
List<Intersection> listB)
Merges two lists of intersections into a single list sorted by intersection distance from a specified reference point. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Double intersectionLength
protected Vec4 intersectionPoint
protected Position intersectionPosition
protected boolean isTangent
protected Object object
| Constructor Detail |
|---|
public Intersection(Vec4 intersectionPoint,
boolean isTangent)
intersectionPoint - the intersection point.isTangent - true if the intersection is tangent to the object intersected, otherwise false.
IllegalArgumentException - if intersectionPoint is null
public Intersection(Vec4 intersectionPoint,
double intersectionLength,
boolean isTangent)
intersectionPoint - the intersection pointintersectionLength - the parametric length along the intersection geometry. If the geometry was a line, then
this value will be the parametric value of the intersection point along the line.isTangent - true if the intersection is tangent to the object intersected, otherwise false.
IllegalArgumentException - if intersectionPoint is null
public Intersection(Vec4 intersectionPoint,
Position intersectionPosition,
boolean isTangent,
Object object)
| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic Double getIntersectionLength()
public Vec4 getIntersectionPoint()
public Position getIntersectionPosition()
public Object getObject()
public int hashCode()
hashCode in class Objectpublic boolean isTangent()
public void setIntersectionPoint(Vec4 intersectionPoint)
intersectionPoint - the intersection point. May be null, but typically should not be.public void setIntersectionPosition(Position intersectionPosition)
intersectionPosition - the intersection position. May be null.public void setObject(Object object)
object - the object to associate with the intersection. May be null.public void setTangent(boolean tangent)
tangent - true if the intersection is tangent, otherwise false.
public static Queue<Intersection> sort(Vec4 refPoint,
List<Intersection> listA,
List<Intersection> listB)
refPoint - the reference point.listA - the first list of intersections.listB - the second list of intersections.
public String toString()
toString in class Object
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||