move

fun move(e: E, sx: Double, sy: Double, fx: Double, fy: Double): Boolean

Same of .move, but with explicit parameters.

Return

true if the element is found and no error occurred

Parameters

e

the element

sx

the start x

sy

the start y

fx

the final x

fy

the final y


open override fun move(element: E, start: DoubleArray, end: DoubleArray): Boolean

If an element is moved, updates the SpatialIndex accordingly.

Return

true if the element is found and moved

Parameters

element

The element to move

start

The coordinates where the element is currently located

end

The coordinates where the element should be moved