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