Table of Contents

Struct GeoAabb3

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Whether an axis-aligned box touches another shape.

public readonly struct GeoAabb3 : IEquatable<GeoAabb3>
Implements
Inherited Members
Extension Methods

Constructors

GeoAabb3(GeoPoint3, GeoPoint3)

Initializes a box spanning two opposite corners, in either order.

Properties

Center

Gets the centre of the box, or the world origin when it is empty.

Diagonal

Gets the diagonal of the box as a vector from Min to Max.

Empty

Gets the empty box, which holds nothing.

IsEmpty

Gets whether the box holds anything at all.

IsValid

Gets whether this is a shape a constructor could have made: it is empty, or both corners are valid points with the low one no higher than the high one on any axis.

Max

Gets the corner with the largest coordinate on every axis.

Min

Gets the corner with the smallest coordinate on every axis.

SizeX

Gets the size of the box along the X axis, or zero when it is empty.

SizeY

Gets the size of the box along the Y axis, or zero when it is empty.

SizeZ

Gets the size of the box along the Z axis, or zero when it is empty.

SurfaceArea

Gets the total area of the six faces of the box.

Volume

Gets the volume of the box.

Methods

Clone()

Creates a copy of this box.

CollidesWith(GeoAabb3)

Checks whether this box overlaps another one, using the default tolerance.

CollidesWith(GeoAabb3, Tolerance)

Checks whether this box overlaps another one, within a tolerance.

CollidesWith(GeoArc3)

Checks whether this axis-aligned box touches an arc, using the default tolerance.

CollidesWith(GeoArc3, Tolerance)

Checks whether this axis-aligned box touches an arc, within a tolerance.

CollidesWith(GeoCircle3)

Checks whether this axis-aligned box touches a circle, using the default tolerance.

CollidesWith(GeoCircle3, Tolerance)

Checks whether this axis-aligned box touches a circle, within a tolerance.

CollidesWith(GeoEdge3)

Checks whether this axis-aligned box touches an edge.

CollidesWith(GeoEdge3, Tolerance)

Checks whether this axis-aligned box touches an edge, within a tolerance.

CollidesWith(GeoFace3)

Checks whether this axis-aligned box and the material of a face touch: the same answer as CollidesWith(GeoFace3, GeoAabb3).

CollidesWith(GeoFace3, Tolerance)

Checks whether this axis-aligned box and the material of a face touch, within a tolerance: the same answer as CollidesWith(GeoFace3, GeoAabb3, Tolerance).

CollidesWith(GeoLine3)

Checks whether this box touches a segment, using the default tolerance.

CollidesWith(GeoLine3, Tolerance)

Checks whether this box touches a segment, within a tolerance.

CollidesWith(GeoObb3)

Checks whether this box touches an oriented box, using the default tolerance.

CollidesWith(GeoObb3, Tolerance)

Checks whether this box touches an oriented box, within a tolerance.

CollidesWith(GeoPlane3)

Checks whether this axis-aligned box touches a plane: the same answer as CollidesWith(GeoPlane3, GeoAabb3).

CollidesWith(GeoPlane3, Tolerance)

Checks whether this axis-aligned box touches a plane, within a tolerance: the same answer as CollidesWith(GeoPlane3, GeoAabb3, Tolerance).

CollidesWith(GeoPolygon3)

Checks whether this axis-aligned box and a polygon touch: the same answer as CollidesWith(GeoPolygon3, GeoAabb3).

CollidesWith(GeoPolygon3, Tolerance)

Checks whether this axis-aligned box and a polygon touch, within a tolerance: the same answer as CollidesWith(GeoPolygon3, GeoAabb3, Tolerance).

CollidesWith(GeoPolygonArc3)

Checks whether this axis-aligned box touches a curved loop.

CollidesWith(GeoPolygonArc3, Tolerance)

Checks whether this axis-aligned box touches a curved loop, within a tolerance.

CollidesWith(GeoPolyline3)

Checks whether this axis-aligned box touches a straight chain: the same answer as CollidesWith(GeoAabb3).

CollidesWith(GeoPolyline3, Tolerance)

Checks whether this axis-aligned box touches a straight chain, within a tolerance: the same answer as CollidesWith(GeoAabb3, Tolerance).

CollidesWith(GeoPolylineArc3)

Checks whether this axis-aligned box touches a curved chain.

CollidesWith(GeoPolylineArc3, Tolerance)

Checks whether this axis-aligned box touches a curved chain, within a tolerance.

CollidesWith(GeoRay3)

Checks whether a ray starts inside this box or runs into it, using the default tolerance.

CollidesWith(GeoRay3, Tolerance)

Checks whether a ray starts inside this box or runs into it, within a tolerance.

CollidesWith(GeoSolid3)

Checks whether this box touches a solid, using the default tolerance.

CollidesWith(GeoSolid3, Tolerance)

Checks whether this box touches a solid, within a tolerance.

CollidesWith(GeoSphere3)

Determines whether this axis-aligned box touches a ball, using the default tolerance.

CollidesWith(GeoSphere3, Tolerance)

Determines whether this axis-aligned box touches a ball, within a tolerance.

CollidesWith(GeoSpline3)

Determines whether this box touches a spline, using the default tolerance.

CollidesWith(GeoSpline3, Tolerance)

Determines whether this box touches a spline, within a tolerance.

CollidesWith(GeoTriangle3)

Checks whether this axis-aligned box and a triangle touch: the same answer as CollidesWith(GeoTriangle3, GeoAabb3).

CollidesWith(GeoTriangle3, Tolerance)

Checks whether this axis-aligned box and a triangle touch, within a tolerance: the same answer as CollidesWith(GeoTriangle3, GeoAabb3, Tolerance).

CollidesWith(GeoXLine3)

Determines whether this box touches an infinite line, using the default tolerance.

CollidesWith(GeoXLine3, Tolerance)

Determines whether this box touches an infinite line, within a tolerance.

Contains(GeoAabb3)

Checks whether this box holds another box entirely, using the default tolerance.

Contains(GeoAabb3, Tolerance)

Checks whether this box holds another box entirely, within a tolerance.

Contains(GeoPoint3)

Checks whether this box holds a point, using the default tolerance.

Contains(GeoPoint3, Tolerance)

Checks whether this box holds a point, within a tolerance.

DistanceTo(GeoAabb3)

Calculates the shortest distance between this box and another one. Boxes that overlap are at distance zero, and an empty box is infinitely far from everything.

DistanceTo(GeoFace3)

Calculates the shortest distance between this axis-aligned box and a face: the answer of DistanceTo(GeoFace3, GeoAabb3).

DistanceTo(GeoFace3, Tolerance)

Calculates the shortest distance between this axis-aligned box and a face, within a tolerance: the answer of DistanceTo(GeoFace3, GeoAabb3, Tolerance).

DistanceTo(GeoLine3)

Calculates the shortest distance between this axis-aligned box and a segment: the answer of DistanceTo(GeoLine3, GeoAabb3).

DistanceTo(GeoLine3, Tolerance)

Calculates the shortest distance between this axis-aligned box and a segment, within a tolerance: the answer of DistanceTo(GeoLine3, GeoAabb3, Tolerance).

DistanceTo(GeoObb3)

Calculates the shortest distance between this axis-aligned box and an oriented box: the answer of DistanceTo(GeoObb3, GeoAabb3).

DistanceTo(GeoObb3, Tolerance)

Calculates the shortest distance between this axis-aligned box and an oriented box, within a tolerance: the answer of DistanceTo(GeoObb3, GeoAabb3, Tolerance).

DistanceTo(GeoPlane3)

Calculates the shortest distance between this axis-aligned box and a plane: the answer of DistanceTo(GeoPlane3, GeoAabb3).

DistanceTo(GeoPlane3, Tolerance)

Calculates the shortest distance between this axis-aligned box and a plane, within a tolerance: the answer of DistanceTo(GeoPlane3, GeoAabb3, Tolerance).

DistanceTo(GeoPoint3)

Calculates the shortest distance from this box to a point. A point inside is at distance zero, and an empty box is infinitely far from everything.

DistanceTo(GeoPolygon3)

Calculates the shortest distance between this axis-aligned box and a polygon: the answer of DistanceTo(GeoPolygon3, GeoAabb3).

DistanceTo(GeoPolygon3, Tolerance)

Calculates the shortest distance between this axis-aligned box and a polygon, within a tolerance: the answer of DistanceTo(GeoPolygon3, GeoAabb3, Tolerance).

DistanceTo(GeoPolyline3)

Gets the distance from this box to a polyline, using the default tolerance.

DistanceTo(GeoPolyline3, Tolerance)

Gets the distance from this box to a polyline, within a tolerance.

DistanceTo(GeoRay3)

Calculates the shortest distance between this axis-aligned box and a ray: the answer of DistanceTo(GeoRay3, GeoAabb3).

DistanceTo(GeoRay3, Tolerance)

Calculates the shortest distance between this axis-aligned box and a ray, within a tolerance: the answer of DistanceTo(GeoRay3, GeoAabb3, Tolerance).

DistanceTo(GeoSolid3)

Gets the distance from this box to a solid, using the default tolerance.

DistanceTo(GeoSolid3, Tolerance)

Gets the distance from this box to a solid, within a tolerance.

DistanceTo(GeoSphere3)

Calculates the shortest distance from this axis-aligned box to a ball.

DistanceTo(GeoSpline3)

Calculates the shortest distance from this box to a spline, using the default tolerance.

DistanceTo(GeoSpline3, Tolerance)

Calculates the shortest distance from this box to a spline, within a tolerance.

DistanceTo(GeoTriangle3)

Calculates the shortest distance between this axis-aligned box and a triangle: the answer of DistanceTo(GeoTriangle3, GeoAabb3).

DistanceTo(GeoTriangle3, Tolerance)

Calculates the shortest distance between this axis-aligned box and a triangle, within a tolerance: the answer of DistanceTo(GeoTriangle3, GeoAabb3, Tolerance).

DistanceTo(GeoXLine3)

Calculates the shortest distance from this box to an infinite line, using the default tolerance.

DistanceTo(GeoXLine3, Tolerance)

Calculates the shortest distance from this box to an infinite line, within a tolerance.

Equals(GeoAabb3)

Determines whether another box has exactly the same corners, with two empty boxes counting as equal.

Equals(object)

Determines whether the specified object is equal to the current box.

Expand(double)

Gets this box grown outwards by a margin on every side.

FromPoints(IEnumerable<GeoPoint3>)

Creates the smallest box holding every one of a set of points.

GetClosestPointOnBoundary(GeoPoint3)

Gets the point of this box closest to a target point. A point inside the box is already on it under that reading and comes back unchanged.

GetCorners()

Gets the eight corners of the box, or an empty array when it is empty.

GetHashCode()

Returns the hash code for this instance.

GetIntersections(GeoArc3)

Gets every point where an arc crosses the surface of this axis-aligned box, using the default tolerance.

GetIntersections(GeoArc3, Tolerance)

Gets every point where an arc crosses the surface of this axis-aligned box, within a tolerance.

GetIntersections(GeoCircle3)

Gets every point where a circle crosses the surface of this axis-aligned box, using the default tolerance.

GetIntersections(GeoCircle3, Tolerance)

Gets every point where a circle crosses the surface of this axis-aligned box, within a tolerance.

GetIntersections(GeoEdge3)

Gets every point where an edge crosses this axis-aligned box.

GetIntersections(GeoEdge3, Tolerance)

Gets every point where an edge crosses this axis-aligned box, within a tolerance.

GetIntersections(GeoFace3)

Gets the points where the surface of this axis-aligned box and the material of a face cross: the same points, in the same order, as GetIntersections(GeoFace3, GeoAabb3).

GetIntersections(GeoFace3, Tolerance)

Gets the points where the surface of this axis-aligned box and the material of a face cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoFace3, GeoAabb3, Tolerance).

GetIntersections(GeoLine3)

Gets every point where a segment crosses the surface of this box, using the default tolerance.

GetIntersections(GeoLine3, Tolerance)

Gets every point where a segment crosses the surface of this box, within a tolerance.

GetIntersections(GeoPlane3)

Gets the points where a plane cuts the edges of this axis-aligned box: the same points, in the same order, as GetIntersections(GeoPlane3, GeoAabb3).

GetIntersections(GeoPlane3, Tolerance)

Gets the points where a plane cuts the edges of this axis-aligned box, within a tolerance: the same points, in the same order, as GetIntersections(GeoPlane3, GeoAabb3, Tolerance).

GetIntersections(GeoPolygon3)

Gets the points where the surface of this axis-aligned box and a polygon cross: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoAabb3).

GetIntersections(GeoPolygon3, Tolerance)

Gets the points where the surface of this axis-aligned box and a polygon cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoAabb3, Tolerance).

GetIntersections(GeoPolygonArc3)

Gets every point where a curved loop crosses this axis-aligned box.

GetIntersections(GeoPolygonArc3, Tolerance)

Gets every point where a curved loop crosses this axis-aligned box, within a tolerance.

GetIntersections(GeoPolyline3)

Gets every point where this axis-aligned box crosses a straight chain: the same points, in the same order, as GetIntersections(GeoAabb3).

GetIntersections(GeoPolyline3, Tolerance)

Gets every point where this axis-aligned box crosses a straight chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoAabb3, Tolerance).

GetIntersections(GeoPolylineArc3)

Gets every point where a curved chain crosses this axis-aligned box.

GetIntersections(GeoPolylineArc3, Tolerance)

Gets every point where a curved chain crosses this axis-aligned box, within a tolerance.

GetIntersections(GeoRay3)

Gets every point where a ray crosses the surface of this box, using the default tolerance.

GetIntersections(GeoRay3, Tolerance)

Gets every point where a ray crosses the surface of this box, within a tolerance.

GetIntersections(GeoSpline3)

Gets the points where this box meets a spline, using the default tolerance.

GetIntersections(GeoSpline3, Tolerance)

Gets the points where this box meets a spline, within a tolerance.

GetIntersections(GeoTriangle3)

Gets the points where the surface of this axis-aligned box and a triangle cross: the same points, in the same order, as GetIntersections(GeoTriangle3, GeoAabb3).

GetIntersections(GeoTriangle3, Tolerance)

Gets the points where the surface of this axis-aligned box and a triangle cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoTriangle3, GeoAabb3, Tolerance).

GetIntersections(GeoXLine3)

Gets the points where an infinite line crosses this box, using the default tolerance.

GetIntersections(GeoXLine3, Tolerance)

Gets the points where an infinite line crosses this box, within a tolerance.

GetShortestLineTo(GeoSphere3)

Gets the shortest segment leaving this axis-aligned box and landing on a ball, using the default tolerance.

GetShortestLineTo(GeoSphere3, Tolerance)

Gets the shortest segment leaving this axis-aligned box and landing on a ball, within a tolerance.

GetShortestLineTo(GeoSpline3)

Gets the shortest segment leaving this box and landing on a spline, using the default tolerance.

GetShortestLineTo(GeoSpline3, Tolerance)

Gets the shortest segment leaving this box and landing on a spline, within a tolerance.

Intersect(GeoAabb3)

Gets the box shared by this box and another one, or Empty when they do not overlap.

IsEqualTo(GeoAabb3)

Compares whether this box equals another using the default tolerance.

IsEqualTo(GeoAabb3, Tolerance)

Compares whether this box equals another within a tolerance.

Locate(GeoPoint3)

Locates a point relative to this box, using the default tolerance.

Locate(GeoPoint3, Tolerance)

Locates a point relative to this box, within a tolerance.

SignedDistanceTo(GeoPoint3)

Calculates the distance from this box to a point, negative for a point within it.

SignedDistanceTo(GeoPoint3, Tolerance)

Calculates the distance from this box to a point, negative for a point within it, within a tolerance.

ToCells(CellOptions3)

Cuts the box into cells as the options say, along the world's axes, using the default tolerance.

ToCells(CellOptions3, MeshPlacement3)

Cuts the box into cells as the options say, its grid standing as the placement says, using the default tolerance.

ToCells(CellOptions3, MeshPlacement3, Tolerance)

Cuts the box into cells as the options say, its grid standing as the placement says, within a tolerance: blocks, bays, lifts or bars, each a closed body of what the box holds of the cell.

ToCells(CellOptions3, Tolerance)

Cuts the box into cells as the options say, along the world's axes, within a tolerance.

ToObb()

Gets this box as an oriented box aligned with the world axes.

ToString()

Returns a string that represents the current box.

TransformBy(GeoTransform3)

Applies a transformation to this box.

Translate(GeoVector3)

Moves the box by a vector.

TryIntersectWith(GeoArc3, out GeoPoint3[])

Tries to find where an arc crosses the surface of this axis-aligned box, using the default tolerance.

TryIntersectWith(GeoArc3, out GeoPoint3[], Tolerance)

Tries to find where an arc crosses the surface of this axis-aligned box, within a tolerance.

TryIntersectWith(GeoCircle3, out GeoPoint3[])

Tries to find where a circle crosses the surface of this axis-aligned box, using the default tolerance.

TryIntersectWith(GeoCircle3, out GeoPoint3[], Tolerance)

Tries to find where a circle crosses the surface of this axis-aligned box, within a tolerance.

TryIntersectWith(GeoFace3, out GeoPoint3[])

Tries to find where the surface of this axis-aligned box and the material of a face cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoAabb3, out GeoPoint3[]).

TryIntersectWith(GeoFace3, out GeoPoint3[], Tolerance)

Tries to find where the surface of this axis-aligned box and the material of a face cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoAabb3, out GeoPoint3[], Tolerance).

TryIntersectWith(GeoPlane3, out GeoPoint3[])

Tries to find where a plane cuts the edges of this axis-aligned box: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoAabb3, out GeoPoint3[]).

TryIntersectWith(GeoPlane3, out GeoPoint3[], Tolerance)

Tries to find where a plane cuts the edges of this axis-aligned box, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoAabb3, out GeoPoint3[], Tolerance).

TryIntersectWith(GeoPolygon3, out GeoPoint3[])

Tries to find where the surface of this axis-aligned box and a polygon cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoPolygon3, GeoAabb3, out GeoPoint3[]).

TryIntersectWith(GeoPolygon3, out GeoPoint3[], Tolerance)

Tries to find where the surface of this axis-aligned box and a polygon cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPolygon3, GeoAabb3, out GeoPoint3[], Tolerance).

TryIntersectWith(GeoPolyline3, out GeoPoint3[])

Tries to find where this axis-aligned box crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoAabb3, out GeoPoint3[]).

TryIntersectWith(GeoPolyline3, out GeoPoint3[], Tolerance)

Tries to find where this axis-aligned box crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoAabb3, out GeoPoint3[], Tolerance).

TryIntersectWith(GeoSpline3, out GeoPoint3[])

Tries to find where this box meets a spline, using the default tolerance.

TryIntersectWith(GeoSpline3, out GeoPoint3[], Tolerance)

Tries to find where this box meets a spline, within a tolerance.

TryIntersectWith(GeoTriangle3, out GeoPoint3[])

Tries to find where the surface of this axis-aligned box and a triangle cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoAabb3, out GeoPoint3[]).

TryIntersectWith(GeoTriangle3, out GeoPoint3[], Tolerance)

Tries to find where the surface of this axis-aligned box and a triangle cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoAabb3, out GeoPoint3[], Tolerance).

Union(GeoAabb3)

Gets the smallest box holding both this box and another one.

Union(GeoPoint3)

Gets the smallest box holding both this box and a point.

Operators

operator ==(GeoAabb3, GeoAabb3)

Checks if two boxes have exactly the same corners.

operator !=(GeoAabb3, GeoAabb3)

Checks if two boxes differ in either corner.