| Package | Description |
|---|---|
| com.io7m.jregions.core.unparameterized.areas |
Area types.
|
| com.io7m.jregions.generators |
Quickcheck generators.
|
| Modifier and Type | Method and Description |
|---|---|
static AreaBD |
AreasBD.alignCenter(AreaBD outer,
AreaBD inner)
Align the area
inner such that the center of the area is equal to
the center of outer. |
static AreaBD |
AreasBD.alignHorizontallyCenter(AreaBD outer,
AreaBD inner)
Align the area
inner horizontally in the center of outer. |
static AreaBD |
AreasBD.alignHorizontallyMaxX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignHorizontallyMaxXOffset(AreaBD,
AreaBD, java.math.BigDecimal) with a zero offset. |
static AreaBD |
AreasBD.alignHorizontallyMaxXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset)
Align the area
inner horizontally against the inside maximum-x edge
of outer. |
static AreaBD |
AreasBD.alignHorizontallyMinX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignHorizontallyMinXOffset(AreaBD, AreaBD,
java.math.BigDecimal) with a zero offset. |
static AreaBD |
AreasBD.alignHorizontallyMinXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset)
Align the area
inner horizontally against the inside minimum-x edge
of outer. |
static AreaBD |
AreasBD.alignMaxYMaxX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignMaxYMaxXOffset(AreaBD, AreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static AreaBD |
AreasBD.alignMaxYMaxXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset_x,
BigDecimal offset_y)
Align the area
inner such that the maximum-y edge is at least
offset_y from the inside maximum-y edge of outer and the
maximum-x edge is at least offset_x from the inside maximum-x edge
of outer. |
static AreaBD |
AreasBD.alignMaxYMinX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignMaxYMinXOffset(AreaBD, AreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static AreaBD |
AreasBD.alignMaxYMinXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset_x,
BigDecimal offset_y)
Align the area
inner such that the maximum-y edge is at least
offset_y from the inside maximum-y edge of outer and the
minimum-x edge is at least offset_x from the inside minimum-x edge
of outer. |
static AreaBD |
AreasBD.alignMinYMaxX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignMinYMaxXOffset(AreaBD, AreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static AreaBD |
AreasBD.alignMinYMaxXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset_x,
BigDecimal offset_y)
Align the area
inner such that the minimum-y edge is at least
offset_y from the inside minimum-y edge of outer and the
maximum-x edge is at least offset_x from the inside maximum-x edge
of outer. |
static AreaBD |
AreasBD.alignMinYMinX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignMinYMinXOffset(AreaBD, AreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static AreaBD |
AreasBD.alignMinYMinXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset_x,
BigDecimal offset_y)
Align the area
inner such that the minimum-y edge is at least
offset_y from the inside minimum-y edge of outer and the
minimum-x edge is at least offset_x from the inside minimum-x edge
of outer. |
static AreaBD |
AreasBD.alignVerticallyCenter(AreaBD outer,
AreaBD inner)
Align the area
inner vertically in the center of outer. |
static AreaBD |
AreasBD.alignVerticallyMaxY(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignVerticallyMaxYOffset(AreaBD, AreaBD,
java.math.BigDecimal) with a zero offset. |
static AreaBD |
AreasBD.alignVerticallyMaxYOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset)
Align the area
inner vertically against the inside maximum-y edge
of outer. |
static AreaBD |
AreasBD.alignVerticallyMinY(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignVerticallyMinYOffset(AreaBD, AreaBD,
java.math.BigDecimal) with a zero offset. |
static AreaBD |
AreasBD.alignVerticallyMinYOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset)
Align the area
inner vertically against the inside minimum-y edge
of outer. |
AreaBD |
AreaBD.Builder.build()
Builds a new
AreaBD. |
static AreaBD |
AreasBD.containing(AreaBD a,
AreaBD b)
Construct a area that will contain both
a and b. |
static AreaBD |
AreasBD.create(BigDecimal x,
BigDecimal y,
BigDecimal width,
BigDecimal height)
Create an area of width
width and height height, placing
the minimum corner at (x, y). |
static AreaBD |
AreasBD.fitBetweenHorizontal(AreaBD fit,
AreaBD a,
AreaBD b)
Attempt to fit
fit between a and b, horizontally. |
static AreaBD |
AreasBD.fitBetweenVertical(AreaBD fit,
AreaBD a,
AreaBD b)
Attempt to fit
fit between a and b, vertically. |
static AreaBD |
AreasBD.hollowOut(AreaBD outer,
BigDecimal min_x_offset,
BigDecimal max_x_offset,
BigDecimal min_y_offset,
BigDecimal max_y_offset)
Construct a new area that fits inside
outer based on the given
offsets from each edge. |
static AreaBD |
AreasBD.hollowOutEvenly(AreaBD outer,
BigDecimal offset)
Equivalent to calling
AreasBD.hollowOut(AreaBD, java.math.BigDecimal, java.math.BigDecimal,
java.math.BigDecimal, java.math.BigDecimal) with offset for all offset parameters. |
static AreaBD |
AreasBD.moveAbsolute(AreaBD area,
BigDecimal x,
BigDecimal y)
Move the given area to
(x, y). |
static AreaBD |
AreasBD.moveRelative(AreaBD area,
BigDecimal x,
BigDecimal y)
Move the given area by
(x, y). |
static AreaBD |
AreasBD.moveToOrigin(AreaBD area)
Move the given area to
(0, 0). |
static AreaBD |
AreaBD.of(BigDecimal minimumX,
BigDecimal maximumX,
BigDecimal minimumY,
BigDecimal maximumY)
Construct a new immutable
AreaBD instance. |
static AreaBD |
AreasBD.scaleFromCenter(AreaBD area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaBD |
AreasBD.scaleFromMaxYMaxX(AreaBD area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaBD |
AreasBD.scaleFromMaxYMinX(AreaBD area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaBD |
AreasBD.scaleFromMinYMaxX(AreaBD area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaBD |
AreasBD.scaleFromMinYMinX(AreaBD area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaBD |
AreasBD.setSizeFromCenter(AreaBD area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static AreaBD |
AreasBD.setSizeFromMaxYMaxX(AreaBD area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static AreaBD |
AreasBD.setSizeFromMaxYMinX(AreaBD area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static AreaBD |
AreasBD.setSizeFromMinYMaxX(AreaBD area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static AreaBD |
AreasBD.setSizeFromMinYMinX(AreaBD area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
| Modifier and Type | Method and Description |
|---|---|
static AreaXSplitBD<AreaBD> |
AreasBD.splitAlongParallelToX(AreaBD area,
BigDecimal y)
Split
area along a line parallel to the X axis placed at
y units from its own minimum-y edge. |
static AreaYSplitBD<AreaBD> |
AreasBD.splitAlongParallelToY(AreaBD area,
BigDecimal x)
Split
area along a line parallel to the Y axis placed at
x units from its own minimum-x edge. |
| Modifier and Type | Method and Description |
|---|---|
static AreaBD |
AreasBD.alignCenter(AreaBD outer,
AreaBD inner)
Align the area
inner such that the center of the area is equal to
the center of outer. |
static AreaBD |
AreasBD.alignHorizontallyCenter(AreaBD outer,
AreaBD inner)
Align the area
inner horizontally in the center of outer. |
static AreaBD |
AreasBD.alignHorizontallyMaxX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignHorizontallyMaxXOffset(AreaBD,
AreaBD, java.math.BigDecimal) with a zero offset. |
static AreaBD |
AreasBD.alignHorizontallyMaxXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset)
Align the area
inner horizontally against the inside maximum-x edge
of outer. |
static AreaBD |
AreasBD.alignHorizontallyMinX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignHorizontallyMinXOffset(AreaBD, AreaBD,
java.math.BigDecimal) with a zero offset. |
static AreaBD |
AreasBD.alignHorizontallyMinXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset)
Align the area
inner horizontally against the inside minimum-x edge
of outer. |
static AreaBD |
AreasBD.alignMaxYMaxX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignMaxYMaxXOffset(AreaBD, AreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static AreaBD |
AreasBD.alignMaxYMaxXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset_x,
BigDecimal offset_y)
Align the area
inner such that the maximum-y edge is at least
offset_y from the inside maximum-y edge of outer and the
maximum-x edge is at least offset_x from the inside maximum-x edge
of outer. |
static AreaBD |
AreasBD.alignMaxYMinX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignMaxYMinXOffset(AreaBD, AreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static AreaBD |
AreasBD.alignMaxYMinXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset_x,
BigDecimal offset_y)
Align the area
inner such that the maximum-y edge is at least
offset_y from the inside maximum-y edge of outer and the
minimum-x edge is at least offset_x from the inside minimum-x edge
of outer. |
static AreaBD |
AreasBD.alignMinYMaxX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignMinYMaxXOffset(AreaBD, AreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static AreaBD |
AreasBD.alignMinYMaxXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset_x,
BigDecimal offset_y)
Align the area
inner such that the minimum-y edge is at least
offset_y from the inside minimum-y edge of outer and the
maximum-x edge is at least offset_x from the inside maximum-x edge
of outer. |
static AreaBD |
AreasBD.alignMinYMinX(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignMinYMinXOffset(AreaBD, AreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static AreaBD |
AreasBD.alignMinYMinXOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset_x,
BigDecimal offset_y)
Align the area
inner such that the minimum-y edge is at least
offset_y from the inside minimum-y edge of outer and the
minimum-x edge is at least offset_x from the inside minimum-x edge
of outer. |
static AreaBD |
AreasBD.alignVerticallyCenter(AreaBD outer,
AreaBD inner)
Align the area
inner vertically in the center of outer. |
static AreaBD |
AreasBD.alignVerticallyMaxY(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignVerticallyMaxYOffset(AreaBD, AreaBD,
java.math.BigDecimal) with a zero offset. |
static AreaBD |
AreasBD.alignVerticallyMaxYOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset)
Align the area
inner vertically against the inside maximum-y edge
of outer. |
static AreaBD |
AreasBD.alignVerticallyMinY(AreaBD outer,
AreaBD inner)
Equivalent to calling
AreasBD.alignVerticallyMinYOffset(AreaBD, AreaBD,
java.math.BigDecimal) with a zero offset. |
static AreaBD |
AreasBD.alignVerticallyMinYOffset(AreaBD outer,
AreaBD inner,
BigDecimal offset)
Align the area
inner vertically against the inside minimum-y edge
of outer. |
static AreaBD |
AreasBD.containing(AreaBD a,
AreaBD b)
Construct a area that will contain both
a and b. |
static boolean |
AreasBD.contains(AreaBD a,
AreaBD b)
Determine whether or not one area contains another.
|
static boolean |
AreasBD.containsPoint(AreaBD a,
BigDecimal x,
BigDecimal y)
Determine whether or not a area contains a given point.
|
static boolean |
AreasBD.couldFitInside(AreaBD a,
AreaBD b)
Determine whether or not one area could fit inside another.
|
static AreaBD |
AreasBD.fitBetweenHorizontal(AreaBD fit,
AreaBD a,
AreaBD b)
Attempt to fit
fit between a and b, horizontally. |
static AreaBD |
AreasBD.fitBetweenVertical(AreaBD fit,
AreaBD a,
AreaBD b)
Attempt to fit
fit between a and b, vertically. |
static AreaBD |
AreasBD.hollowOut(AreaBD outer,
BigDecimal min_x_offset,
BigDecimal max_x_offset,
BigDecimal min_y_offset,
BigDecimal max_y_offset)
Construct a new area that fits inside
outer based on the given
offsets from each edge. |
static AreaBD |
AreasBD.hollowOutEvenly(AreaBD outer,
BigDecimal offset)
Equivalent to calling
AreasBD.hollowOut(AreaBD, java.math.BigDecimal, java.math.BigDecimal,
java.math.BigDecimal, java.math.BigDecimal) with offset for all offset parameters. |
static AreaBD |
AreasBD.moveAbsolute(AreaBD area,
BigDecimal x,
BigDecimal y)
Move the given area to
(x, y). |
static AreaBD |
AreasBD.moveRelative(AreaBD area,
BigDecimal x,
BigDecimal y)
Move the given area by
(x, y). |
static AreaBD |
AreasBD.moveToOrigin(AreaBD area)
Move the given area to
(0, 0). |
static boolean |
AreasBD.overlaps(AreaBD a,
AreaBD b)
Determine whether or not two areas overlap.
|
static AreaBD |
AreasBD.scaleFromCenter(AreaBD area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaBD |
AreasBD.scaleFromMaxYMaxX(AreaBD area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaBD |
AreasBD.scaleFromMaxYMinX(AreaBD area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaBD |
AreasBD.scaleFromMinYMaxX(AreaBD area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaBD |
AreasBD.scaleFromMinYMinX(AreaBD area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaBD |
AreasBD.setSizeFromCenter(AreaBD area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static AreaBD |
AreasBD.setSizeFromMaxYMaxX(AreaBD area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static AreaBD |
AreasBD.setSizeFromMaxYMinX(AreaBD area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static AreaBD |
AreasBD.setSizeFromMinYMaxX(AreaBD area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static AreaBD |
AreasBD.setSizeFromMinYMinX(AreaBD area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static String |
AreasBD.show(AreaBD area) |
static String |
AreasBD.showToBuilder(AreaBD area,
StringBuilder sb) |
static AreaXSplitBD<AreaBD> |
AreasBD.splitAlongParallelToX(AreaBD area,
BigDecimal y)
Split
area along a line parallel to the X axis placed at
y units from its own minimum-y edge. |
static AreaYSplitBD<AreaBD> |
AreasBD.splitAlongParallelToY(AreaBD area,
BigDecimal x)
Split
area along a line parallel to the Y axis placed at
x units from its own minimum-x edge. |
| Modifier and Type | Method and Description |
|---|---|
AreaBD |
AreaBDGenerator.next() |
Copyright © 2017 <code@io7m.com> http://io7m.com