public final class PAreasBD extends Object
Functions over areas.
These functions operate using the concepts of minimum-x, maximum-x, minimum-y, and maximum-y edges. It is up to individual applications to assign meaning to these edges such as "left" for minimum-x and "top" for minimum-y.
| Modifier and Type | Method and Description |
|---|---|
static <S> PAreaBD<S> |
alignCenter(PAreaBD<S> outer,
PAreaBD<S> inner)
Align the area
inner such that the center of the area is equal to
the center of outer. |
static <S> PAreaBD<S> |
alignHorizontallyCenter(PAreaBD<S> outer,
PAreaBD<S> inner)
Align the area
inner horizontally in the center of outer. |
static <S> PAreaBD<S> |
alignHorizontallyMaxX(PAreaBD<S> outer,
PAreaBD<S> inner)
Equivalent to calling
alignHorizontallyMaxXOffset(PAreaBD,
PAreaBD, java.math.BigDecimal) with a zero offset. |
static <S> PAreaBD<S> |
alignHorizontallyMaxXOffset(PAreaBD<S> outer,
PAreaBD<S> inner,
BigDecimal offset)
Align the area
inner horizontally against the inside maximum-x edge
of outer. |
static <S> PAreaBD<S> |
alignHorizontallyMinX(PAreaBD<S> outer,
PAreaBD<S> inner)
Equivalent to calling
alignHorizontallyMinXOffset(PAreaBD, PAreaBD,
java.math.BigDecimal) with a zero offset. |
static <S> PAreaBD<S> |
alignHorizontallyMinXOffset(PAreaBD<S> outer,
PAreaBD<S> inner,
BigDecimal offset)
Align the area
inner horizontally against the inside minimum-x edge
of outer. |
static <S> PAreaBD<S> |
alignMaxYMaxX(PAreaBD<S> outer,
PAreaBD<S> inner)
Equivalent to calling
alignMaxYMaxXOffset(PAreaBD, PAreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static <S> PAreaBD<S> |
alignMaxYMaxXOffset(PAreaBD<S> outer,
PAreaBD<S> 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 <S> PAreaBD<S> |
alignMaxYMinX(PAreaBD<S> outer,
PAreaBD<S> inner)
Equivalent to calling
alignMaxYMinXOffset(PAreaBD, PAreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static <S> PAreaBD<S> |
alignMaxYMinXOffset(PAreaBD<S> outer,
PAreaBD<S> 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 <S> PAreaBD<S> |
alignMinYMaxX(PAreaBD<S> outer,
PAreaBD<S> inner)
Equivalent to calling
alignMinYMaxXOffset(PAreaBD, PAreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static <S> PAreaBD<S> |
alignMinYMaxXOffset(PAreaBD<S> outer,
PAreaBD<S> 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 <S> PAreaBD<S> |
alignMinYMinX(PAreaBD<S> outer,
PAreaBD<S> inner)
Equivalent to calling
alignMinYMinXOffset(PAreaBD, PAreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets. |
static <S> PAreaBD<S> |
alignMinYMinXOffset(PAreaBD<S> outer,
PAreaBD<S> 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 <S> PAreaBD<S> |
alignVerticallyCenter(PAreaBD<S> outer,
PAreaBD<S> inner)
Align the area
inner vertically in the center of outer. |
static <S> PAreaBD<S> |
alignVerticallyMaxY(PAreaBD<S> outer,
PAreaBD<S> inner)
Equivalent to calling
alignVerticallyMaxYOffset(PAreaBD, PAreaBD,
java.math.BigDecimal) with a zero offset. |
static <S> PAreaBD<S> |
alignVerticallyMaxYOffset(PAreaBD<S> outer,
PAreaBD<S> inner,
BigDecimal offset)
Align the area
inner vertically against the inside maximum-y edge
of outer. |
static <S> PAreaBD<S> |
alignVerticallyMinY(PAreaBD<S> outer,
PAreaBD<S> inner)
Equivalent to calling
alignVerticallyMinYOffset(PAreaBD, PAreaBD,
java.math.BigDecimal) with a zero offset. |
static <S> PAreaBD<S> |
alignVerticallyMinYOffset(PAreaBD<S> outer,
PAreaBD<S> inner,
BigDecimal offset)
Align the area
inner vertically against the inside minimum-y edge
of outer. |
static <S,T> PAreaBD<T> |
cast(PAreaBD<S> area)
Brand a given area as belonging to a different coordinate space.
|
static <S> PAreaBD<S> |
containing(PAreaBD<S> a,
PAreaBD<S> b)
Construct a area that will contain both
a and b. |
static <S> boolean |
contains(PAreaBD<S> a,
PAreaBD<S> b)
Determine whether or not one area contains another.
|
static <S> boolean |
containsPoint(PAreaBD<S> a,
BigDecimal x,
BigDecimal y)
Determine whether or not a area contains a given point.
|
static <S> boolean |
couldFitInside(PAreaBD<S> a,
PAreaBD<S> b)
Determine whether or not one area could fit inside another.
|
static <S> PAreaBD<S> |
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 <S> PAreaBD<S> |
fitBetweenHorizontal(PAreaBD<S> fit,
PAreaBD<S> a,
PAreaBD<S> b)
Attempt to fit
fit between a and b, horizontally. |
static <S> PAreaBD<S> |
fitBetweenVertical(PAreaBD<S> fit,
PAreaBD<S> a,
PAreaBD<S> b)
Attempt to fit
fit between a and b, vertically. |
static <S> PAreaBD<S> |
hollowOut(PAreaBD<S> 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 <S> PAreaBD<S> |
hollowOutEvenly(PAreaBD<S> outer,
BigDecimal offset)
Equivalent to calling
hollowOut(PAreaBD, java.math.BigDecimal, java.math.BigDecimal,
java.math.BigDecimal, java.math.BigDecimal) with offset for all offset parameters. |
static <S> PAreaBD<S> |
moveAbsolute(PAreaBD<S> area,
BigDecimal x,
BigDecimal y)
Move the given area to
(x, y). |
static <S> PAreaBD<S> |
moveRelative(PAreaBD<S> area,
BigDecimal x,
BigDecimal y)
Move the given area by
(x, y). |
static <S> PAreaBD<S> |
moveToOrigin(PAreaBD<S> area)
Move the given area to
(0, 0). |
static <S> boolean |
overlaps(PAreaBD<S> a,
PAreaBD<S> b)
Determine whether or not two areas overlap.
|
static <S> PAreaBD<S> |
scaleFromCenter(PAreaBD<S> area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static <S> PAreaBD<S> |
scaleFromMaxYMaxX(PAreaBD<S> area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static <S> PAreaBD<S> |
scaleFromMaxYMinX(PAreaBD<S> area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static <S> PAreaBD<S> |
scaleFromMinYMaxX(PAreaBD<S> area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static <S> PAreaBD<S> |
scaleFromMinYMinX(PAreaBD<S> area,
BigDecimal x_diff,
BigDecimal y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static <S> PAreaBD<S> |
setSizeFromCenter(PAreaBD<S> area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static <S> PAreaBD<S> |
setSizeFromMaxYMaxX(PAreaBD<S> area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static <S> PAreaBD<S> |
setSizeFromMaxYMinX(PAreaBD<S> area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static <S> PAreaBD<S> |
setSizeFromMinYMaxX(PAreaBD<S> area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static <S> PAreaBD<S> |
setSizeFromMinYMinX(PAreaBD<S> area,
BigDecimal width,
BigDecimal height)
Set the width and height of
area to width and height, respectively. |
static <S> String |
show(PAreaBD<S> area) |
static <S> String |
showToBuilder(PAreaBD<S> area,
StringBuilder sb) |
static <S> PAreaXSplitBD<S,PAreaBD<S>> |
splitAlongParallelToX(PAreaBD<S> area,
BigDecimal y)
Split
area along a line parallel to the X axis placed at
y units from its own minimum-y edge. |
static <S> PAreaYSplitBD<S,PAreaBD<S>> |
splitAlongParallelToY(PAreaBD<S> area,
BigDecimal x)
Split
area along a line parallel to the Y axis placed at
x units from its own minimum-x edge. |
public static <S> PAreaBD<S> create(BigDecimal x, BigDecimal y, BigDecimal width, BigDecimal height)
width and height height, placing
the minimum corner at (x, y).S - The coordinate space of the areax - The X value of the minimum cornery - The Y value of the minimum cornerwidth - The width of the areaheight - The height of the areapublic static <S> boolean contains(PAreaBD<S> a, PAreaBD<S> b)
Determine whether or not one area contains another.
Containing is reflexive: contains(a, a) == true.
Containing is transitive: contains(a, b) → contains(b, c) →
contains(a, c).
Containing is not necessarily symmetric.
S - The coordinate space of the areasa - Area Ab - Area Btrue iff a contains bpublic static <S> PAreaBD<S> moveRelative(PAreaBD<S> area, BigDecimal x, BigDecimal y)
(x, y).S - The coordinate space of the areaarea - The areax - The amount to move on the X axisy - The amount to move on the Y axispublic static <S> PAreaBD<S> moveAbsolute(PAreaBD<S> area, BigDecimal x, BigDecimal y)
(x, y).S - The coordinate space of the areaarea - The areax - The position to which to move on the X axisy - The position to which to move on the Y axispublic static <S> PAreaBD<S> moveToOrigin(PAreaBD<S> area)
(0, 0).S - The coordinate space of the areaarea - The areapublic static <S,T> PAreaBD<T> cast(PAreaBD<S> area)
S - The starting coordinate spaceT - The resulting coordinate spacearea - An areaareapublic static <S> PAreaBD<S> alignHorizontallyCenter(PAreaBD<S> outer, PAreaBD<S> inner)
inner horizontally in the center of outer.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> alignHorizontallyMinX(PAreaBD<S> outer, PAreaBD<S> inner)
alignHorizontallyMinXOffset(PAreaBD, PAreaBD,
java.math.BigDecimal) with a zero offset.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> alignHorizontallyMinXOffset(PAreaBD<S> outer, PAreaBD<S> inner, BigDecimal offset)
inner horizontally against the inside minimum-x edge
of outer. The area will be at least offset units from the
minimum-x edge.S - The coordinate space of the areasouter - The outer areainner - The inner areaoffset - The offset from the edgepublic static <S> PAreaBD<S> alignHorizontallyMaxX(PAreaBD<S> outer, PAreaBD<S> inner)
alignHorizontallyMaxXOffset(PAreaBD,
PAreaBD, java.math.BigDecimal) with a zero offset.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> alignHorizontallyMaxXOffset(PAreaBD<S> outer, PAreaBD<S> inner, BigDecimal offset)
inner horizontally against the inside maximum-x edge
of outer. The area will be at least offset units from the
maximum-x edge.S - The coordinate space of the areasouter - The outer areainner - The inner areaoffset - The offset from the edgepublic static <S> PAreaBD<S> alignVerticallyMinY(PAreaBD<S> outer, PAreaBD<S> inner)
alignVerticallyMinYOffset(PAreaBD, PAreaBD,
java.math.BigDecimal) with a zero offset.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> alignVerticallyMinYOffset(PAreaBD<S> outer, PAreaBD<S> inner, BigDecimal offset)
inner vertically against the inside minimum-y edge
of outer. The area will be at least offset units from the
minimum-y edge.S - The coordinate space of the areasouter - The outer areainner - The inner areaoffset - The offset from the edgepublic static <S> PAreaBD<S> alignVerticallyMaxY(PAreaBD<S> outer, PAreaBD<S> inner)
alignVerticallyMaxYOffset(PAreaBD, PAreaBD,
java.math.BigDecimal) with a zero offset.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> alignVerticallyMaxYOffset(PAreaBD<S> outer, PAreaBD<S> inner, BigDecimal offset)
inner vertically against the inside maximum-y edge
of outer. The area will be at least offset units from the
maximum-y edge.S - The coordinate space of the areasouter - The outer areainner - The inner areaoffset - The offset from the edgepublic static <S> PAreaBD<S> alignVerticallyCenter(PAreaBD<S> outer, PAreaBD<S> inner)
inner vertically in the center of outer.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> alignMinYMinX(PAreaBD<S> outer, PAreaBD<S> inner)
alignMinYMinXOffset(PAreaBD, PAreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> alignMinYMinXOffset(PAreaBD<S> outer, PAreaBD<S> inner, BigDecimal offset_x, BigDecimal offset_y)
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.S - The coordinate space of the areasouter - The outer areainner - The inner areaoffset_x - The offset from the minimum-x edgeoffset_y - The offset from the minimum-y edgepublic static <S> PAreaBD<S> alignMinYMaxX(PAreaBD<S> outer, PAreaBD<S> inner)
alignMinYMaxXOffset(PAreaBD, PAreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> alignMinYMaxXOffset(PAreaBD<S> outer, PAreaBD<S> inner, BigDecimal offset_x, BigDecimal offset_y)
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.S - The coordinate space of the areasouter - The outer areainner - The inner areaoffset_x - The offset from the maximum-x edgeoffset_y - The offset from the minimum-y edgepublic static <S> PAreaBD<S> alignMaxYMinX(PAreaBD<S> outer, PAreaBD<S> inner)
alignMaxYMinXOffset(PAreaBD, PAreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> alignMaxYMinXOffset(PAreaBD<S> outer, PAreaBD<S> inner, BigDecimal offset_x, BigDecimal offset_y)
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.S - The coordinate space of the areasouter - The outer areainner - The inner areaoffset_x - The offset from the minimum-x edgeoffset_y - The offset from the maximum-y edgepublic static <S> PAreaBD<S> alignMaxYMaxX(PAreaBD<S> outer, PAreaBD<S> inner)
alignMaxYMaxXOffset(PAreaBD, PAreaBD,
java.math.BigDecimal, java.math.BigDecimal) with zero offsets.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> alignMaxYMaxXOffset(PAreaBD<S> outer, PAreaBD<S> inner, BigDecimal offset_x, BigDecimal offset_y)
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.S - The coordinate space of the areasouter - The outer areainner - The inner areaoffset_x - The offset from the maximum-x edgeoffset_y - The offset from the maximum-y edgepublic static <S> PAreaBD<S> alignCenter(PAreaBD<S> outer, PAreaBD<S> inner)
inner such that the center of the area is equal to
the center of outer.S - The coordinate space of the areasouter - The outer areainner - The inner areapublic static <S> PAreaBD<S> hollowOut(PAreaBD<S> outer, BigDecimal min_x_offset, BigDecimal max_x_offset, BigDecimal min_y_offset, BigDecimal max_y_offset)
outer based on the given
offsets from each edge.S - The coordinate space of the areasouter - The containing areamin_x_offset - The offset from the minimum-x edge (must be
non-negative)max_x_offset - The offset from the maximum-x edge (must be
non-negative)min_y_offset - The offset from the minimum-y edge (must be
non-negative)max_y_offset - The offset from the maximum-y edge (must be
non-negative)public static <S> PAreaBD<S> hollowOutEvenly(PAreaBD<S> outer, BigDecimal offset)
hollowOut(PAreaBD, java.math.BigDecimal, java.math.BigDecimal,
java.math.BigDecimal, java.math.BigDecimal) with offset for all offset parameters.S - The coordinate space of the areasouter - The containing areaoffset - The offset from each edge (must be non-negative)public static <S> PAreaBD<S> setSizeFromCenter(PAreaBD<S> area, BigDecimal width, BigDecimal height)
Set the width and height of area to width and height, respectively.
The area is resized from its own center.
S - The coordinate space of the areaarea - The areawidth - The new width (must be non-negative)height - The new height (must be non-negative)public static <S> PAreaBD<S> setSizeFromMinYMinX(PAreaBD<S> area, BigDecimal width, BigDecimal height)
Set the width and height of area to width and height, respectively.
The area is resized by moving its minimum-y-minimum-x corner.
S - The coordinate space of the areaarea - The areawidth - The new width (must be non-negative)height - The new height (must be non-negative)public static <S> PAreaBD<S> setSizeFromMinYMaxX(PAreaBD<S> area, BigDecimal width, BigDecimal height)
Set the width and height of area to width and height, respectively.
The area is resized by moving its minimum-y-maximum-x corner.
S - The coordinate space of the areaarea - The areawidth - The new width (must be non-negative)height - The new height (must be non-negative)public static <S> PAreaBD<S> setSizeFromMaxYMaxX(PAreaBD<S> area, BigDecimal width, BigDecimal height)
Set the width and height of area to width and height, respectively.
The area is resized by moving its maximum-y-maximum-x corner.
S - The coordinate space of the areaarea - The areawidth - The new width (must be non-negative)height - The new height (must be non-negative)public static <S> PAreaBD<S> setSizeFromMaxYMinX(PAreaBD<S> area, BigDecimal width, BigDecimal height)
Set the width and height of area to width and height, respectively.
The area is resized by moving its maximum-y-minimum-x corner.
S - The coordinate space of the areaarea - The areawidth - The new width (must be non-negative)height - The new height (must be non-negative)public static <S> PAreaBD<S> scaleFromMinYMinX(PAreaBD<S> area, BigDecimal x_diff, BigDecimal y_diff)
Scale area by adding x_diff to the width, and y_diff to the height. The size of the resulting area is clamped so that
its width and height are always non-negative.
The area is resized by moving its minimum-y-minimum-x corner.
S - The coordinate space of the areaarea - The areax_diff - The X differencey_diff - The Y differencepublic static <S> PAreaBD<S> scaleFromMinYMaxX(PAreaBD<S> area, BigDecimal x_diff, BigDecimal y_diff)
Scale area by adding x_diff to the width, and y_diff to the height. The size of the resulting area is clamped so that
its width and height are always non-negative.
The area is resized by moving its minimum-y-maximum-x corner.
S - The coordinate space of the areaarea - The areax_diff - The X differencey_diff - The Y differencepublic static <S> PAreaBD<S> scaleFromMaxYMinX(PAreaBD<S> area, BigDecimal x_diff, BigDecimal y_diff)
Scale area by adding x_diff to the width, and y_diff to the height. The size of the resulting area is clamped so that
its width and height are always non-negative.
The area is resized by moving its maximum-y-minimum-x corner.
S - The coordinate space of the areaarea - The areax_diff - The X differencey_diff - The Y differencepublic static <S> PAreaBD<S> scaleFromMaxYMaxX(PAreaBD<S> area, BigDecimal x_diff, BigDecimal y_diff)
Scale area by adding x_diff to the width, and y_diff to the height. The size of the resulting area is clamped so that
its width and height are always non-negative.
The area is resized by moving its maximum-y-maximum-x corner.
S - The coordinate space of the areaarea - The areax_diff - The X differencey_diff - The Y differencepublic static <S> PAreaBD<S> scaleFromCenter(PAreaBD<S> area, BigDecimal x_diff, BigDecimal y_diff)
Scale area by adding x_diff to the width, and y_diff to the height. The size of the resulting area is clamped so that
its width and height are always non-negative.
The area is resized from its own center.
S - The coordinate space of the areaarea - The areax_diff - The X differencey_diff - The Y differencepublic static <S> boolean overlaps(PAreaBD<S> a, PAreaBD<S> b)
Determine whether or not two areas overlap.
Overlapping is reflexive: overlaps(a, a) == true.
Overlapping is symmetric: overlaps(a, b) == contains(b, a).
Overlapping is not necessarily transitive.
S - The coordinate space of the areasa - An areab - An areatrue iff a overlaps bpublic static <S> boolean couldFitInside(PAreaBD<S> a, PAreaBD<S> b)
Determine whether or not one area could fit inside another.
Fitting is reflexive: couldFitInside(a, a) == true.
Fitting is transitive: couldFitInside(a, b) → couldFitInside(b,
c) → couldFitInside(a, c).
Fitting is not necessarily symmetric.
S - The coordinate space of the areasa - An areab - An areatrue iff a could fit inside bpublic static <S> PAreaBD<S> containing(PAreaBD<S> a, PAreaBD<S> b)
a and b.S - The coordinate space of the areasa - An areab - An areaa and bpublic static <S> boolean containsPoint(PAreaBD<S> a, BigDecimal x, BigDecimal y)
Determine whether or not a area contains a given point.
S - The coordinate space of the areaa - An areax - The X coordinate of the pointy - The Y coordinate of the pointtrue iff a contains (x, y)public static <S> PAreaBD<S> fitBetweenHorizontal(PAreaBD<S> fit, PAreaBD<S> a, PAreaBD<S> b)
fit between a and b, horizontally.S - The coordinate space of the areasfit - The area to be fitteda - An areab - An areapublic static <S> PAreaBD<S> fitBetweenVertical(PAreaBD<S> fit, PAreaBD<S> a, PAreaBD<S> b)
fit between a and b, vertically.S - The coordinate space of the areasfit - The area to be fitteda - An areab - An areapublic static <S> PAreaXSplitBD<S,PAreaBD<S>> splitAlongParallelToX(PAreaBD<S> area, BigDecimal y)
area along a line parallel to the X axis placed at
y units from its own minimum-y edge.S - The coordinate space of the areasarea - The area to be splity - The relative Y coordinate of the splitting edgepublic static <S> PAreaYSplitBD<S,PAreaBD<S>> splitAlongParallelToY(PAreaBD<S> area, BigDecimal x)
area along a line parallel to the Y axis placed at
x units from its own minimum-x edge.S - The coordinate space of the areasarea - The area to be splitx - The relative X coordinate of the splitting edgepublic static <S> String show(PAreaBD<S> area)
S - The coordinate space of the areaarea - The areapublic static <S> String showToBuilder(PAreaBD<S> area, StringBuilder sb)
S - The coordinate space of the areaarea - The areasb - A string builderCopyright © 2017 <code@io7m.com> http://io7m.com