Class GeoObb3
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Whether an oriented box touches another shape.
public sealed class GeoObb3 : IEquatable<GeoObb3>
- Inheritance
-
GeoObb3
- Implements
- Inherited Members
Constructors
- GeoObb3(GeoCoordinateSystem3, double, double, double)
Initializes a box from a local coordinate system and its sizes.
- GeoObb3(GeoPoint3, double, double, double)
Initializes a box aligned with the world axes.
- GeoObb3(GeoPoint3, double, double, double, GeoVector3, GeoVector3)
Initializes a box with its own orientation.
Properties
- AxisX
Gets the local X axis, a unit vector.
- AxisY
Gets the local Y axis, a unit vector.
- AxisZ
Gets the local Z axis, a unit vector.
- Center
Gets the centre point of the box.
- CoordinateSystem
Gets the local coordinate system of the box: its centre and its three orthonormal axes.
- ExtentX
Gets the half-size of the box along its local X axis.
- ExtentY
Gets the half-size of the box along its local Y axis.
- ExtentZ
Gets the half-size of the box along its local Z axis.
- SizeX
Gets the full size of the box along its local X axis.
- SizeY
Gets the full size of the box along its local Y axis.
- SizeZ
Gets the full size of the box along its local Z axis.
- SurfaceArea
Gets the total area of the six faces.
- Volume
Gets the volume of the box.
Methods
- Clone()
Creates a copy of this box.
- CollidesWith(GeoAabb3)
Checks whether this box touches an axis-aligned box, using the default tolerance.
- CollidesWith(GeoAabb3, Tolerance)
Checks whether this box touches an axis-aligned box, within a tolerance.
- CollidesWith(GeoArc3)
Checks whether this oriented box touches an arc, using the default tolerance.
- CollidesWith(GeoArc3, Tolerance)
Checks whether this oriented box touches an arc, within a tolerance.
- CollidesWith(GeoCircle3)
Checks whether this oriented box touches a circle, using the default tolerance.
- CollidesWith(GeoCircle3, Tolerance)
Checks whether this oriented box touches a circle, within a tolerance.
- CollidesWith(GeoEdge3)
Checks whether this oriented box touches an edge.
- CollidesWith(GeoEdge3, Tolerance)
Checks whether this oriented box touches an edge, within a tolerance.
- CollidesWith(GeoFace3)
Checks whether this oriented box and the material of a face touch: the same answer as CollidesWith(GeoFace3, GeoObb3).
- CollidesWith(GeoFace3, Tolerance)
Checks whether this oriented box and the material of a face touch, within a tolerance: the same answer as CollidesWith(GeoFace3, GeoObb3, 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 overlaps another one, using the default tolerance.
- CollidesWith(GeoObb3, Tolerance)
Checks whether this box overlaps another one, within a tolerance.
- CollidesWith(GeoPlane3)
Checks whether this oriented box touches a plane: the same answer as CollidesWith(GeoPlane3, GeoObb3).
- CollidesWith(GeoPlane3, Tolerance)
Checks whether this oriented box touches a plane, within a tolerance: the same answer as CollidesWith(GeoPlane3, GeoObb3, Tolerance).
- CollidesWith(GeoPolygon3)
Checks whether this box touches a polygon, using the default tolerance.
- CollidesWith(GeoPolygon3, Tolerance)
Checks whether this box touches a polygon, within a tolerance.
- CollidesWith(GeoPolygonArc3)
Checks whether this oriented box touches a curved loop.
- CollidesWith(GeoPolygonArc3, Tolerance)
Checks whether this oriented box touches a curved loop, within a tolerance.
- CollidesWith(GeoPolyline3)
Checks whether this oriented box touches a straight chain: the same answer as CollidesWith(GeoObb3).
- CollidesWith(GeoPolyline3, Tolerance)
Checks whether this oriented box touches a straight chain, within a tolerance: the same answer as CollidesWith(GeoObb3, Tolerance).
- CollidesWith(GeoPolylineArc3)
Checks whether this oriented box touches a curved chain.
- CollidesWith(GeoPolylineArc3, Tolerance)
Checks whether this oriented 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 oriented box touches a ball, using the default tolerance.
- CollidesWith(GeoSphere3, Tolerance)
Determines whether this oriented 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 oriented box and a triangle touch: the same answer as CollidesWith(GeoTriangle3, GeoObb3).
- CollidesWith(GeoTriangle3, Tolerance)
Checks whether this oriented box and a triangle touch, within a tolerance: the same answer as CollidesWith(GeoTriangle3, GeoObb3, 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(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 oriented box and an axis-aligned box: the answer of DistanceTo(GeoObb3, GeoAabb3).
- DistanceTo(GeoAabb3, Tolerance)
Calculates the shortest distance between this oriented box and an axis-aligned box, within a tolerance: the answer of DistanceTo(GeoObb3, GeoAabb3, Tolerance).
- DistanceTo(GeoFace3)
Calculates the shortest distance between this oriented box and a face: the answer of DistanceTo(GeoFace3, GeoObb3).
- DistanceTo(GeoFace3, Tolerance)
Calculates the shortest distance between this oriented box and a face, within a tolerance: the answer of DistanceTo(GeoFace3, GeoObb3, Tolerance).
- DistanceTo(GeoLine3)
Calculates the shortest distance between this oriented box and a segment: the answer of DistanceTo(GeoLine3, GeoObb3).
- DistanceTo(GeoLine3, Tolerance)
Calculates the shortest distance between this oriented box and a segment, within a tolerance: the answer of DistanceTo(GeoLine3, GeoObb3, Tolerance).
- DistanceTo(GeoObb3)
Gets the distance from this box to a box, using the default tolerance.
- DistanceTo(GeoObb3, Tolerance)
Gets the distance from this box to a box, within a tolerance.
- DistanceTo(GeoPlane3)
Calculates the shortest distance between this oriented box and a plane: the answer of DistanceTo(GeoPlane3, GeoObb3).
- DistanceTo(GeoPlane3, Tolerance)
Calculates the shortest distance between this oriented box and a plane, within a tolerance: the answer of DistanceTo(GeoPlane3, GeoObb3, Tolerance).
- DistanceTo(GeoPoint3)
Calculates the shortest distance from this box to a point. A point inside the box is at distance zero.
- DistanceTo(GeoPolygon3)
Calculates the shortest distance between this oriented box and a polygon: the answer of DistanceTo(GeoPolygon3, GeoObb3).
- DistanceTo(GeoPolygon3, Tolerance)
Calculates the shortest distance between this oriented box and a polygon, within a tolerance: the answer of DistanceTo(GeoPolygon3, GeoObb3, 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 oriented box and a ray: the answer of DistanceTo(GeoRay3, GeoObb3).
- DistanceTo(GeoRay3, Tolerance)
Calculates the shortest distance between this oriented box and a ray, within a tolerance: the answer of DistanceTo(GeoRay3, GeoObb3, 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 oriented 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 oriented box and a triangle: the answer of DistanceTo(GeoTriangle3, GeoObb3).
- DistanceTo(GeoTriangle3, Tolerance)
Calculates the shortest distance between this oriented box and a triangle, within a tolerance: the answer of DistanceTo(GeoTriangle3, GeoObb3, 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(GeoObb3)
Determines whether another box has exactly the same placement and sizes.
- Equals(object)
Determines whether the specified object is equal to the current box.
- Fit(IEnumerable<GeoPoint3>)
Gets a small box round some points, turned to fit them, using the default tolerance.
- Fit(IEnumerable<GeoPoint3>, Tolerance)
Gets a small box round some points, turned to fit them.
- GetAabb()
Gets the axis-aligned bounding box enclosing this oriented box.
- GetAxisAt(int)
Gets one of the local axes, counted from zero.
- GetClosestPointOnBoundary(GeoPoint3)
Gets the point of this box closest to a target point.
- GetCorners()
Gets the eight corners of the box.
- GetExtentAt(int)
Gets the half-size along one of the local axes, counted from zero.
- GetFaces()
Gets the six faces of the box as polygons, each wound so its normal points outwards.
- GetHashCode()
Returns the hash code for this instance.
- GetIntersections(GeoArc3)
Gets every point where an arc crosses the surface of this oriented box, using the default tolerance.
- GetIntersections(GeoArc3, Tolerance)
Gets every point where an arc crosses the surface of this oriented box, within a tolerance.
- GetIntersections(GeoCircle3)
Gets every point where a circle crosses the surface of this oriented box, using the default tolerance.
- GetIntersections(GeoCircle3, Tolerance)
Gets every point where a circle crosses the surface of this oriented box, within a tolerance.
- GetIntersections(GeoEdge3)
Gets every point where an edge crosses this oriented box.
- GetIntersections(GeoEdge3, Tolerance)
Gets every point where an edge crosses this oriented box, within a tolerance.
- GetIntersections(GeoFace3)
Gets the points where the surface of this oriented box and the material of a face cross: the same points, in the same order, as GetIntersections(GeoFace3, GeoObb3).
- GetIntersections(GeoFace3, Tolerance)
Gets the points where the surface of this oriented box and the material of a face cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoFace3, GeoObb3, 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 oriented box: the same points, in the same order, as GetIntersections(GeoPlane3, GeoObb3).
- GetIntersections(GeoPlane3, Tolerance)
Gets the points where a plane cuts the edges of this oriented box, within a tolerance: the same points, in the same order, as GetIntersections(GeoPlane3, GeoObb3, Tolerance).
- GetIntersections(GeoPolygon3)
Gets the points where the surface of this oriented box and a polygon cross: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoObb3).
- GetIntersections(GeoPolygon3, Tolerance)
Gets the points where the surface of this oriented box and a polygon cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoObb3, Tolerance).
- GetIntersections(GeoPolygonArc3)
Gets every point where a curved loop crosses this oriented box.
- GetIntersections(GeoPolygonArc3, Tolerance)
Gets every point where a curved loop crosses this oriented box, within a tolerance.
- GetIntersections(GeoPolyline3)
Gets every point where this oriented box crosses a straight chain: the same points, in the same order, as GetIntersections(GeoObb3).
- GetIntersections(GeoPolyline3, Tolerance)
Gets every point where this oriented box crosses a straight chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoObb3, Tolerance).
- GetIntersections(GeoPolylineArc3)
Gets every point where a curved chain crosses this oriented box.
- GetIntersections(GeoPolylineArc3, Tolerance)
Gets every point where a curved chain crosses this oriented 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 oriented box and a triangle cross: the same points, in the same order, as GetIntersections(GeoTriangle3, GeoObb3).
- GetIntersections(GeoTriangle3, Tolerance)
Gets the points where the surface of this oriented box and a triangle cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoTriangle3, GeoObb3, 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 oriented box and landing on a ball, using the default tolerance.
- GetShortestLineTo(GeoSphere3, Tolerance)
Gets the shortest segment leaving this oriented 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.
- IsDegenerate()
Checks whether the box has zero size on any axis, using the default tolerance.
- IsDegenerate(Tolerance)
Checks whether the box has zero size on any axis, within a tolerance: a side no longer than the point tolerance.
- IsEqualTo(GeoObb3)
Compares whether this box equals another using the default tolerance.
- IsEqualTo(GeoObb3, 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 its own 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 its own axes, within a tolerance.
- ToSolid()
Gets this box as a solid bounded by its six faces.
- ToString()
Returns a string that represents the current box.
- TransformBy(GeoTransform3)
Applies a transformation to the box.
- Translate(GeoVector3)
Moves the box by a vector.
- TryExpand(double, out GeoObb3)
Grows the box by a margin on every side, or shrinks it by a negative one.
- TryIntersect(GeoObb3, out GeoSolid3)
Keeps what this box and another box both enclose.
- TryIntersect(GeoObb3, out GeoSolid3, Tolerance)
Keeps what this box and another box both enclose, within a tolerance.
- TryIntersect(GeoSolid3, out GeoSolid3)
Keeps what this box and a body both enclose.
- TryIntersect(GeoSolid3, out GeoSolid3, Tolerance)
Keeps what this box and a body both enclose, within a tolerance.
- TryIntersectWith(GeoArc3, out GeoPoint3[])
Tries to find where an arc crosses the surface of this oriented box, using the default tolerance.
- TryIntersectWith(GeoArc3, out GeoPoint3[], Tolerance)
Tries to find where an arc crosses the surface of this oriented box, within a tolerance.
- TryIntersectWith(GeoCircle3, out GeoPoint3[])
Tries to find where a circle crosses the surface of this oriented box, using the default tolerance.
- TryIntersectWith(GeoCircle3, out GeoPoint3[], Tolerance)
Tries to find where a circle crosses the surface of this oriented box, within a tolerance.
- TryIntersectWith(GeoFace3, out GeoPoint3[])
Tries to find where the surface of this oriented box and the material of a face cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoObb3, out GeoPoint3[]).
- TryIntersectWith(GeoFace3, out GeoPoint3[], Tolerance)
Tries to find where the surface of this oriented 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, GeoObb3, out GeoPoint3[], Tolerance).
- TryIntersectWith(GeoPlane3, out GeoPoint3[])
Tries to find where a plane cuts the edges of this oriented box: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoObb3, out GeoPoint3[]).
- TryIntersectWith(GeoPlane3, out GeoPoint3[], Tolerance)
Tries to find where a plane cuts the edges of this oriented box, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoObb3, out GeoPoint3[], Tolerance).
- TryIntersectWith(GeoPolygon3, out GeoPoint3[])
Tries to find where the surface of this oriented box and a polygon cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoPolygon3, GeoObb3, out GeoPoint3[]).
- TryIntersectWith(GeoPolygon3, out GeoPoint3[], Tolerance)
Tries to find where the surface of this oriented box and a polygon cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPolygon3, GeoObb3, out GeoPoint3[], Tolerance).
- TryIntersectWith(GeoPolyline3, out GeoPoint3[])
Tries to find where this oriented box crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoObb3, out GeoPoint3[]).
- TryIntersectWith(GeoPolyline3, out GeoPoint3[], Tolerance)
Tries to find where this oriented box crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoObb3, 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 oriented box and a triangle cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoObb3, out GeoPoint3[]).
- TryIntersectWith(GeoTriangle3, out GeoPoint3[], Tolerance)
Tries to find where the surface of this oriented box and a triangle cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoObb3, out GeoPoint3[], Tolerance).
- TrySubtract(GeoObb3, out GeoSolid3)
Takes another box out of this box.
- TrySubtract(GeoObb3, out GeoSolid3, Tolerance)
Takes another box out of this box, within a tolerance.
- TrySubtract(GeoSolid3, out GeoSolid3)
Takes a body out of this box.
- TrySubtract(GeoSolid3, out GeoSolid3, Tolerance)
Takes a body out of this box, within a tolerance.
- TryUnion(GeoObb3, out GeoSolid3)
Joins this box to another box.
- TryUnion(GeoObb3, out GeoSolid3, Tolerance)
Joins this box to another box, within a tolerance.
- TryUnion(GeoSolid3, out GeoSolid3)
Joins this box to a body.
- TryUnion(GeoSolid3, out GeoSolid3, Tolerance)
Joins this box to a body, within a tolerance.