RTreeEntry

final case class RTreeEntry[A] extends RTree[A]

Create an entry for a rectangle and a value.

Create an entry for a rectangle and a value.

Type Params
A

a type of th value being put in the tree

Value Params
maxX

x value of the upper right point of the given rectangle

maxY

y value of the upper right point of the given rectangle

minX

x value of the lower left point of the given rectangle

minY

y value of the lower left point of the given rectangle

value

a value to store in the r-tree

trait Serializable
trait Product
trait Equals
trait RTree[A]
class Object
trait Matchable
class Any

Value members

Concrete methods

def isEmpty: Boolean
def nearest(x: Float, y: Float, maxDist: Float)(f: (Float, RTreeEntry[A]) => Float)(distCalc: DistanceCalculator): Float
def pretty(sb: StringBuilder, indent: Int): StringBuilder
def search(x: Float, y: Float)(f: RTreeEntry[A] => Unit): Unit
def search(minX: Float, minY: Float, maxX: Float, maxY: Float)(f: RTreeEntry[A] => Unit): Unit

Inherited methods

def entries: IndexedSeq[RTreeEntry[A]]
Returns

a sequence of all entries

Inherited from
RTree
def nearestK(x: Float, y: Float, k: Int, maxDist: Float)(distCalc: DistanceCalculator): IndexedSeq[RTreeEntry[A]]

Returns a sequence of up to the specified number of nearest R-tree entries for the given point.

Returns a sequence of up to the specified number of nearest R-tree entries for the given point.

Search distance can be limited by the maxDist parameter.

Value Params
distCalc

a distance calculator provided according to geometry of indexed entries

k

a maximum number of nearest entries to collect

maxDist

an exclusive limit of the distance (infinity by default)

x

x value of the given point

y

y value of the given point

Returns

a sequence of the nearest entries

Inherited from
RTree
def nearestOption(x: Float, y: Float, maxDist: Float)(distCalc: DistanceCalculator): Option[RTreeEntry[A]]

Returns an option of the nearest R-tree entry for the given point.

Returns an option of the nearest R-tree entry for the given point.

Search distance can be limited by the maxDist parameter.

Value Params
distCalc

a distance calculator provided according to geometry of indexed entries

maxDist

an exclusive limit of the distance (infinity by default)

x

x value of the given point

y

y value of the given point

Returns

an option of the nearest entry

Inherited from
RTree
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def searchAll(minX: Float, minY: Float, maxX: Float, maxY: Float): IndexedSeq[RTreeEntry[A]]

Returns a sequence of all entries in the R-tree whose MBR intersects the given rectangle.

Returns a sequence of all entries in the R-tree whose MBR intersects the given rectangle.

Value Params
maxX

x value of the upper right point of the given rectangle

maxY

y value of the upper right point of the given rectangle

minX

x value of the lower left point of the given rectangle

minY

y value of the lower left point of the given rectangle

Returns

a sequence of found values

Inherited from
RTree
def searchAll(x: Float, y: Float): IndexedSeq[RTreeEntry[A]]

Returns a sequence of all entries in the R-tree whose MBR contains the given point.

Returns a sequence of all entries in the R-tree whose MBR contains the given point.

Value Params
x

x value of the given point

y

y value of the given point

Returns

a sequence of found values

Inherited from
RTree
override def toString: String
Returns

a prettified string representation of the r-tree

Definition Classes
RTree -> Any
Inherited from
RTree