Package gov.nasa.worldwind.util
Class PickPointFrustumList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<PickPointFrustum>
-
- gov.nasa.worldwind.util.PickPointFrustumList
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<PickPointFrustum>
,java.util.Collection<PickPointFrustum>
,java.util.List<PickPointFrustum>
,java.util.RandomAccess
public class PickPointFrustumList extends java.util.ArrayList<PickPointFrustum>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PickPointFrustumList()
PickPointFrustumList(PickPointFrustumList list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsInAll(Vec4 point)
Returns true if the specified point is inside the space enclosed by ALL of the frustumsboolean
containsInAll(java.awt.Point point)
Returns true if the specified 2D screen point is inside the 2D screen rectangle enclosed by ALL of the frustumsboolean
containsInAny(double x, double y)
Returns true if the specified 2D point is inside the 2D screen rectangle enclosed by ANY of the frustumsboolean
containsInAny(Vec4 point)
Returns true if the specified point is inside the space enclosed by ANY of the frustumsboolean
containsInAny(java.awt.Point point)
Returns true if the specified 2D point is inside the 2D screen rectangle enclosed by ANY of the frustumsboolean
intersectsAll(Extent extent)
Returns true if the specifiedExtent
intersects the space enclosed by ALL the Frustums.boolean
intersectsAll(java.awt.Rectangle rect)
Returns true if the specifiedRectangle
intersects the 2D screen space enclosed by ALL the Frustums.boolean
intersectsAny(Extent extent)
Returns true if the specifiedExtent
intersects the space enclosed by ANY of the Frustums.boolean
intersectsAny(Vec4 pa, Vec4 pb)
Returns true if a specified line segment intersects the space enclosed by ANY of the Frustums.boolean
intersectsAny(java.awt.Rectangle rect)
Returns true if the specifiedRectangle
intersects the 2D screen space enclosed by ANY of the Frustums.-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Constructor Detail
-
PickPointFrustumList
public PickPointFrustumList()
-
PickPointFrustumList
public PickPointFrustumList(PickPointFrustumList list)
-
-
Method Detail
-
containsInAll
public final boolean containsInAll(Vec4 point)
Returns true if the specified point is inside the space enclosed by ALL of the frustums- Parameters:
point
- the point to test.- Returns:
- true if the specified point is inside the space enclosed by ALL the Frustums, and false otherwise.
- Throws:
java.lang.IllegalArgumentException
- if the point is null.
-
containsInAny
public final boolean containsInAny(Vec4 point)
Returns true if the specified point is inside the space enclosed by ANY of the frustums- Parameters:
point
- the point to test.- Returns:
- true if the specified point is inside the space enclosed by ANY the Frustums, and false otherwise.
- Throws:
java.lang.IllegalArgumentException
- if the point is null.
-
containsInAll
public final boolean containsInAll(java.awt.Point point)
Returns true if the specified 2D screen point is inside the 2D screen rectangle enclosed by ALL of the frustums- Parameters:
point
- the point to test.- Returns:
- true if the specified point is inside the space enclosed by ALL the Frustums, and false otherwise.
- Throws:
java.lang.IllegalArgumentException
- if the point is null.
-
containsInAny
public final boolean containsInAny(double x, double y)
Returns true if the specified 2D point is inside the 2D screen rectangle enclosed by ANY of the frustums- Parameters:
x
- the x coordinate to test.y
- the y coordinate to test.- Returns:
- true if the specified point is inside the space enclosed by ANY the Frustums, and false otherwise.
- Throws:
java.lang.IllegalArgumentException
- if the point is null.
-
containsInAny
public final boolean containsInAny(java.awt.Point point)
Returns true if the specified 2D point is inside the 2D screen rectangle enclosed by ANY of the frustums- Parameters:
point
- the point to test.- Returns:
- true if the specified point is inside the space enclosed by ANY the Frustums, and false otherwise.
- Throws:
java.lang.IllegalArgumentException
- if the point is null.
-
intersectsAll
public final boolean intersectsAll(Extent extent)
Returns true if the specifiedExtent
intersects the space enclosed by ALL the Frustums. NOTE: Cannot be true if all frustums do not intersect.- Parameters:
extent
- the Extent to test.- Returns:
- true if the specified Extent intersects the space enclosed by ALL Frustums, and false otherwise.
- Throws:
java.lang.IllegalArgumentException
- if the extent is null.
-
intersectsAny
public final boolean intersectsAny(Extent extent)
Returns true if the specifiedExtent
intersects the space enclosed by ANY of the Frustums.- Parameters:
extent
- the Extent to test.- Returns:
- true if the specified Extent intersects the space enclosed by ANY of the Frustums, and false otherwise.
- Throws:
java.lang.IllegalArgumentException
- if the extent is null.
-
intersectsAny
public final boolean intersectsAny(Vec4 pa, Vec4 pb)
Returns true if a specified line segment intersects the space enclosed by ANY of the Frustums.- Parameters:
pa
- one end of the segment.pb
- the other end of the segment.- Returns:
- true if the specified segment intersects the space enclosed by ANY of the Frustums, otherwise false.
- Throws:
java.lang.IllegalArgumentException
- if either point is null.
-
intersectsAll
public final boolean intersectsAll(java.awt.Rectangle rect)
Returns true if the specifiedRectangle
intersects the 2D screen space enclosed by ALL the Frustums. NOTE: Cannot be true if all frustums do not intersect.- Parameters:
rect
- the Rectangle to test.- Returns:
- true if the specified Rectangle intersects the 2D screen space enclosed by ALL Frustums, and false otherwise.
- Throws:
java.lang.IllegalArgumentException
- if the extent is null.
-
intersectsAny
public final boolean intersectsAny(java.awt.Rectangle rect)
Returns true if the specifiedRectangle
intersects the 2D screen space enclosed by ANY of the Frustums.- Parameters:
rect
- the Rectangle to test.- Returns:
- true if the specified Rectangle intersects the 2D screen space enclosed by ANY of the Frustums, and false otherwise.
- Throws:
java.lang.IllegalArgumentException
- if the extent is null.
-
-