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