| Modifier and Type | Field and Description |
|---|---|
| private final FloatArray | |
| private final IntArray | |
| private final ShortArray | |
| private final IntArray | |
| private float[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private float | ccw(float p3x, float p3y)
Returns > 0 if the points are a counterclockwise turn, < 0 if clockwise, and 0 if colinear. |
| public IntArray | |
| public IntArray | |
| public IntArray | computeIndices(float[] points, int offset, int count, boolean sorted, boolean yDown)
Computes a hull the same as |
| public FloatArray | |
| public FloatArray | |
| public FloatArray | Returns: pairs of coordinates that describe the convex hull polygon in counterclockwise order. Note the returned array is reused for later calls to the same method.x,y pairs describing points in counter-clockwise order. Duplicate points will result in undefined behavior. points, int offset, int count, boolean If false, the points will be sorted by the x coordinate then the y coordinate, which is required by the convex
hull algorithm. If sorting is done the input array is not modified and count additional working memory is needed. sorted)Returns the convex hull polygon for the given point cloud. |
| private int | |
| private int | quicksortPartitionWithIndices(final float[] values, int lower, int upper, boolean yDown, short[] originalIndices)
|
| private void | sort(float[] values, int
Number of indices, must be even. count)Sorts x,y pairs of values by the x value, then the y value. |
| private void | sortWithIndices(float[] values, int
Number of indices, must be even. count, boolean yDown)Sorts x,y pairs of values by the x value, then the y value and stores unsorted original indices. |
| hull | back to summary |
|---|---|
| private final FloatArray hull | |
| indices | back to summary |
|---|---|
| private final IntArray indices | |
| originalIndices | back to summary |
|---|---|
| private final ShortArray originalIndices | |
| quicksortStack | back to summary |
|---|---|
| private final IntArray quicksortStack | |
| sortedPoints | back to summary |
|---|---|
| private float[] sortedPoints | |
| ConvexHull | back to summary |
|---|---|
| public ConvexHull() | |
| ccw | back to summary |
|---|---|
| private float ccw(float p3x, float p3y) Returns > 0 if the points are a counterclockwise turn, < 0 if clockwise, and 0 if colinear. | |
| computeIndices | back to summary |
|---|---|
| public IntArray computeIndices(FloatArray points, boolean sorted, boolean yDown) | |
| computeIndices | back to summary |
|---|---|
| public IntArray computeIndices(float[] polygon, boolean sorted, boolean yDown) | |
| computeIndices | back to summary |
|---|---|
| public IntArray computeIndices(float[] points, int offset, int count, boolean sorted, boolean yDown) Computes a hull the same as | |
| computePolygon | back to summary |
|---|---|
| public FloatArray computePolygon(FloatArray points, boolean sorted) | |
| computePolygon | back to summary |
|---|---|
| public FloatArray computePolygon(float[] polygon, boolean sorted) | |
| computePolygon | back to summary |
|---|---|
| public FloatArray computePolygon(float[] points, int offset, int count, boolean sorted) Returns the convex hull polygon for the given point cloud.
| |
| quicksortPartition | back to summary |
|---|---|
| private int quicksortPartition(final float[] values, int lower, int upper) | |
| quicksortPartitionWithIndices | back to summary |
|---|---|
| private int quicksortPartitionWithIndices(final float[] values, int lower, int upper, boolean yDown, short[] originalIndices) | |
| sort | back to summary |
|---|---|
| private void sort(float[] values, int count) Sorts x,y pairs of values by the x value, then the y value.
| |
| sortWithIndices | back to summary |
|---|---|
| private void sortWithIndices(float[] values, int count, boolean yDown) Sorts x,y pairs of values by the x value, then the y value and stores unsorted original indices.
| |