static <Point> List<Point> |
AxisAlignedRouter2D.approximateWithAxisAlignedPath(Iterable<Point> points,
Point2DDoubleAdapter<Point> adapter,
ECartesianAxis2D firstAxis,
double precision) |
Approximates a path of line segments using only axis-aligned lines.
|
static <Point> List<Point> |
AxisAlignedRouter2D.approximateWithAxisAlignedPath(Iterator<Point> points,
Point2DDoubleAdapter<Point> adapter,
ECartesianAxis2D firstAxis,
double precision) |
Approximates a path of line segments using only axis-aligned lines.
|
static List<Point2DDouble> |
AxisAlignedRouter2D.axisAlignedPath(Iterable<Point2DDouble> points,
ECartesianAxis2D firstAxis) |
Given a set of points, returns a list of points that represent the path from the first point to the last point,
using only straight (axis-aligned) lines.
|
static List<Point2DDouble> |
AxisAlignedRouter2D.axisAlignedPath(Iterator<Point2DDouble> points,
ECartesianAxis2D firstAxis) |
Given a set of points, returns a list of points that represent the path from the first point to the last point,
using only straight (axis-aligned) lines.
|
Point2D<Numerical> |
Point2D.coordinate(ECartesianAxis2D axis,
Numerical coordinate) |
|
Double |
Point2DDouble.coordinate(ECartesianAxis2D axis) |
|
Point2DDouble |
Point2DDouble.coordinate(ECartesianAxis2D axis,
Double coordinate) |
|
Numerical |
Point2DLike.coordinate(ECartesianAxis2D axis) |
Gets the coordinate of this point on the given axis.
|
Point2DLike<Numerical> |
Point2DLike.coordinate(ECartesianAxis2D axis,
Numerical coordinate) |
Gets a point with the coordinate on the given axis set to the given value, while keeping other coordinates
unchanged.
|
Point2D<Numerical> |
Point2D.coordinateByte(ECartesianAxis2D axis,
byte coordinate) |
|
Point2DDouble |
Point2DDouble.coordinateByte(ECartesianAxis2D axis,
byte coordinate) |
|
default byte |
Point2DLike.coordinateByte(ECartesianAxis2D axis) |
Gets the coordinate of this point on the given axis, as a byte.
|
Point2DLike<Numerical> |
Point2DLike.coordinateByte(ECartesianAxis2D axis,
byte coordinate) |
Gets a point with the coordinate on the given axis set to the given byte value, while keeping other coordinates
unchanged.
|
Point2D<Numerical> |
Point2D.coordinateDouble(ECartesianAxis2D axis,
double coordinate) |
|
double |
Point2DDouble.coordinateDouble(ECartesianAxis2D axis) |
|
Point2DDouble |
Point2DDouble.coordinateDouble(ECartesianAxis2D axis,
double coordinate) |
|
default double |
Point2DLike.coordinateDouble(ECartesianAxis2D axis) |
Gets the coordinate of this point on the given axis, as a double.
|
Point2DLike<Numerical> |
Point2DLike.coordinateDouble(ECartesianAxis2D axis,
double coordinate) |
Gets a point with the coordinate on the given axis set to the given double value, while keeping other coordinates
unchanged.
|
Point2D<Numerical> |
Point2D.coordinateFloat(ECartesianAxis2D axis,
float coordinate) |
|
Point2DDouble |
Point2DDouble.coordinateFloat(ECartesianAxis2D axis,
float coordinate) |
|
default float |
Point2DLike.coordinateFloat(ECartesianAxis2D axis) |
Gets the coordinate of this point on the given axis, as a float.
|
Point2DLike<Numerical> |
Point2DLike.coordinateFloat(ECartesianAxis2D axis,
float coordinate) |
Gets a point with the coordinate on the given axis set to the given float value, while keeping other coordinates
unchanged.
|
Point2D<Numerical> |
Point2D.coordinateInt(ECartesianAxis2D axis,
int coordinate) |
|
Point2DDouble |
Point2DDouble.coordinateInt(ECartesianAxis2D axis,
int coordinate) |
|
default int |
Point2DLike.coordinateInt(ECartesianAxis2D axis) |
Gets the coordinate of this point on the given axis, as an integer.
|
Point2DLike<Numerical> |
Point2DLike.coordinateInt(ECartesianAxis2D axis,
int coordinate) |
Gets a point with the coordinate on the given axis set to the given int value, while keeping other coordinates
unchanged.
|
Point2D<Numerical> |
Point2D.coordinateLong(ECartesianAxis2D axis,
long coordinate) |
|
Point2DDouble |
Point2DDouble.coordinateLong(ECartesianAxis2D axis,
long coordinate) |
|
default long |
Point2DLike.coordinateLong(ECartesianAxis2D axis) |
Gets the coordinate of this point on the given axis, as a long.
|
Point2DLike<Numerical> |
Point2DLike.coordinateLong(ECartesianAxis2D axis,
long coordinate) |
Gets a point with the coordinate on the given axis set to the given long value, while keeping other coordinates
unchanged.
|
Point2D<Numerical> |
Point2D.coordinateShort(ECartesianAxis2D axis,
short coordinate) |
|
Point2DDouble |
Point2DDouble.coordinateShort(ECartesianAxis2D axis,
short coordinate) |
|
default short |
Point2DLike.coordinateShort(ECartesianAxis2D axis) |
Gets the coordinate of this point on the given axis, as an integer.
|
Point2DLike<Numerical> |
Point2DLike.coordinateShort(ECartesianAxis2D axis,
short coordinate) |
Gets a point with the coordinate on the given axis set to the given short value, while keeping other coordinates
unchanged.
|
static Point2DDouble |
AxisAlignedRouter2D.cornerPoint(Point2DDouble start,
Point2DDouble end,
ECartesianAxis2D firstAxis) |
Walks from the given start point to the given end point, by first going straight on the given axis, then making a
sharp turn to the other axis.
|
Numerical |
Rectangular2D.length(ECartesianAxis2D axis) |
Gets the length of the side along the specified axis.
|
Double |
Rectangular2DDouble.length(ECartesianAxis2D axis) |
|
default byte |
Rectangular2D.lengthByte(ECartesianAxis2D axis) |
Gets the length of the side along the specified axis as a byte.
|
default double |
Rectangular2D.lengthDouble(ECartesianAxis2D axis) |
Gets the length of the side along the specified axis as a double.
|
double |
Rectangular2DDouble.lengthDouble(ECartesianAxis2D axis) |
|
default float |
Rectangular2D.lengthFloat(ECartesianAxis2D axis) |
Gets the length of the side along the specified axis as a float.
|
default int |
Rectangular2D.lengthInt(ECartesianAxis2D axis) |
Gets the length of the side along the specified axis as an int.
|
default long |
Rectangular2D.lengthLong(ECartesianAxis2D axis) |
Gets the length of the side along the specified axis as a long.
|
default short |
Rectangular2D.lengthShort(ECartesianAxis2D axis) |
Gets the length of the side along the specified axis as a short.
|
static ECardinalDirection2D |
ECardinalDirection2D.ofAxisAndPolarity(ECartesianAxis2D axis,
EAxisPolarity polarity) |
Returns the cardinal direction corresponding to the given axis and direction.
|