Checks whether a given hyper-cube is fully contained in this hyper-cube.
Checks whether a given hyper-cube is fully contained in this hyper-cube. This is also the case if their bounds full match.
Queries the overlap of this shape with a given
IntPoint2D p
.
Queries the overlap of this shape with a given
IntPoint2D p
. The point is considered to have
a side length of 1!
true
if this shape contains or partly overlaps
the given point
X coordinate of the cube's center
X coordinate of the cube's center
Y coordinate of the cube's center
Y coordinate of the cube's center
Z coordinate of the cube's center
Z coordinate of the cube's center
The extent is the half side length of the cube
The extent is the half side length of the cube
Calculates the greatest interesting hyper-cube inside this hyper-cube which
contains both hyper-cube a
and point b
, and they occupy distinct orthants.
Calculates the greatest interesting hyper-cube inside this hyper-cube which
contains both hyper-cube a
and point b
, and they occupy distinct orthants.
Calculates the greatest interesting hyper-cube inside this hyper-cube which
contains both points a
and b
, and they occupy distinct orthants.
Calculates the greatest interesting hyper-cube inside this hyper-cube which
contains both points a
and b
, and they occupy distinct orthants.
Determines the orthant index of another internal hyper-cube inner
.
Determines the orthant index of another internal hyper-cube inner
.
the index of the orthant (beginning at 0), or -1 if inner
lies
outside of this hyper-cube.
Determines the orthant index of a point point
.
Determines the orthant index of a point point
.
the index of the orthant (beginning at 0), or -1 if point
lies
outside of this hyper-cube.
Calculates the maximum distance to a point in the euclidean metric.
Calculates the maximum distance to a point in the euclidean metric.
This calls maxDistanceSq
and then takes the square root.
Calculates the maximum squared euclidean distance to a point in the euclidean metric.
Calculates the maximum squared euclidean
distance to a point in the euclidean metric.
This is the distance (squared) to the corner which is the furthest from
the point
, no matter if it lies within the hyper-cube or not.
Calculates the minimum distance to a point in the euclidean metric.
Calculates the minimum distance to a point in the euclidean metric.
This calls minDistanceSq
and then takes the square root.
The squared (euclidean) distance of the closest of the cube's corners or sides to the point, if the point is outside the cube, or zero, if the point is contained
The squared (euclidean) distance of the closest of the cube's corners or sides to the point, if the point is outside the cube, or zero, if the point is contained