Package net.algart.math.rectangles
Class IRectangleFinder
java.lang.Object
net.algart.math.rectangles.IRectangleFinder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
void
clear()
compact()
int
findContaining
(double x, double y, int[] resultIndexes) abstract void
findContaining
(double x, double y, IntConsumer indexConsumer) int
findContaining
(int x, int y, int[] resultIndexes) abstract void
findContaining
(int x, int y, IntConsumer indexConsumer) int
findIntersecting
(int minX, int maxX, int minY, int maxY, int[] resultIndexes) abstract void
findIntersecting
(int minX, int maxX, int minY, int maxY, IntConsumer indexConsumer) static IRectangleFinder
static IRectangleFinder
getEmptyInstance
(boolean horizontal) static IRectangleFinder
static IRectangleFinder
getInstance
(int[] minX, int[] maxX, int[] minY, int[] maxY) static IRectangleFinder
getInstance
(IntUnaryOperator minX, IntUnaryOperator maxX, IntUnaryOperator minY, IntUnaryOperator maxY, int numberOfRectangles) final boolean
indexActual
(int k) maxX()
final int
maxX
(int k) maxY()
final int
maxY
(int k) minX()
final int
minX
(int k) minY()
final int
minY
(int k) final int
final IRectangleFinder
final IRectangleFinder
setIndexActual
(IntPredicate indexActual) final IRectangleFinder
setIndexedRectangles
(int[] minX, int[] maxX, int[] minY, int[] maxY, int[] indexes, int numberOfRectangles) protected abstract void
final IRectangleFinder
setRectangles
(int[] minX, int[] maxX, int[] minY, int[] maxY) final IRectangleFinder
setRectangles
(IntUnaryOperator minX, IntUnaryOperator maxX, IntUnaryOperator minY, IntUnaryOperator maxY, int numberOfRectangles) toString()
-
Constructor Details
-
IRectangleFinder
public IRectangleFinder()
-
-
Method Details
-
getEmptyInstance
-
getEmptyInstance
-
getEmptyUnoptimizedInstance
-
getInstance
public static IRectangleFinder getInstance(IntUnaryOperator minX, IntUnaryOperator maxX, IntUnaryOperator minY, IntUnaryOperator maxY, int numberOfRectangles) -
getInstance
-
minX
-
maxX
-
minY
-
maxY
-
minX
public final int minX(int k) -
maxX
public final int maxX(int k) -
minY
public final int minY(int k) -
maxY
public final int maxY(int k) -
numberOfRectangles
public final int numberOfRectangles() -
setRectangles
public final IRectangleFinder setRectangles(IntUnaryOperator minX, IntUnaryOperator maxX, IntUnaryOperator minY, IntUnaryOperator maxY, int numberOfRectangles) -
setRectangles
-
setIndexedRectangles
public final IRectangleFinder setIndexedRectangles(int[] minX, int[] maxX, int[] minY, int[] maxY, int[] indexes, int numberOfRectangles) -
setIndexActual
-
setAllIndexesActual
-
indexActual
public final boolean indexActual(int k) -
compact
-
findContaining
-
findContaining
public int findContaining(int x, int y, int[] resultIndexes) -
findContaining
-
findContaining
public int findContaining(double x, double y, int[] resultIndexes) -
findIntersecting
public abstract void findIntersecting(int minX, int maxX, int minY, int maxY, IntConsumer indexConsumer) -
findIntersecting
public int findIntersecting(int minX, int maxX, int minY, int maxY, int[] resultIndexes) -
clear
public void clear() -
toString
-
setRanges
protected abstract void setRanges() -
algorithmName
-