Table of Contents

Method TryIntersect

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryIntersect(GeoObb3, out GeoSolid3)

Keeps what this box and another box both enclose.

public bool TryIntersect(GeoObb3 other, out GeoSolid3 result)

Parameters

other GeoObb3
result GeoSolid3

Returns

bool

Remarks

A box is read as the body it bounds, which is exact: six flat faces, no fitting and no approximation. The answer is a GeoSolid3 because a boolean of two boxes is hardly ever a box.

TryIntersect(GeoObb3, out GeoSolid3, Tolerance)

Keeps what this box and another box both enclose, within a tolerance.

public bool TryIntersect(GeoObb3 other, out GeoSolid3 result, Tolerance tolerance)

Parameters

other GeoObb3

The other box.

result GeoSolid3

The body the two make, or nothing where they make none.

tolerance Tolerance

The tolerance.

Returns

bool

true when the two made a body; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the other box is null.

TryIntersect(GeoSolid3, out GeoSolid3)

Keeps what this box and a body both enclose.

public bool TryIntersect(GeoSolid3 other, out GeoSolid3 result)

Parameters

other GeoSolid3
result GeoSolid3

Returns

bool

Remarks

A box is read as the body it bounds, which is exact: six flat faces, no fitting and no approximation. The answer is a GeoSolid3 because a boolean of two boxes is hardly ever a box.

TryIntersect(GeoSolid3, out GeoSolid3, Tolerance)

Keeps what this box and a body both enclose, within a tolerance.

public bool TryIntersect(GeoSolid3 other, out GeoSolid3 result, Tolerance tolerance)

Parameters

other GeoSolid3

The body.

result GeoSolid3

The body the two make, or nothing where they make none.

tolerance Tolerance

The tolerance.

Returns

bool

true when the two made a body; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the body is null.