2D parameter domain for surfaces.
More...
#include <MathUtils_Domain.hxx>
|
| constexpr | Domain2D ()=default |
| | Default constructor - creates empty domain.
|
| constexpr | Domain2D (double theUMin, double theUMax, double theVMin, double theVMax) |
| | Construct from bounds.
|
| constexpr | Domain2D (const Domain1D &theUDomain, const Domain1D &theVDomain) |
| | Construct from two 1D domains.
|
| constexpr Domain1D | U () const |
| | Returns the U subdomain.
|
| constexpr Domain1D | V () const |
| | Returns the V subdomain.
|
| constexpr double | ULength () const |
| | Returns U length.
|
| constexpr double | VLength () const |
| | Returns V length.
|
| constexpr double | UMid () const |
| | Returns U midpoint.
|
| constexpr double | VMid () const |
| | Returns V midpoint.
|
| bool | Contains (double theU, double theV, double theTol=0.0) const |
| | Check if UV point is within domain.
|
| void | Clamp (double &theU, double &theV) const |
| | Clamp UV to domain bounds.
|
| bool | IsLarge (double theThreshold=1000.0) const |
| | Check if both U and V domains are "large".
|
| bool | IsUFullPeriod (double thePeriod, double theTol=1.0e-10) const |
| | Check if U domain covers a full period.
|
| bool | IsVFullPeriod (double thePeriod, double theTol=1.0e-10) const |
| | Check if V domain covers a full period.
|
| bool | IsFinite (double theInfLimit=1.0e100) const |
| | Check if domain has finite bounds (not effectively infinite).
|
|
| double | UMin = 0.0 |
| | Lower U bound.
|
| double | UMax = 0.0 |
| | Upper U bound.
|
| double | VMin = 0.0 |
| | Lower V bound.
|
| double | VMax = 0.0 |
| | Upper V bound.
|
2D parameter domain for surfaces.
Represents a rectangular parameter domain [UMin, UMax] x [VMin, VMax] with utility methods for:
- Bounds checking (Contains)
- Parameter clamping (Clamp)
- Domain analysis (IsLarge, IsFullPeriod)
- Access to U and V subdomains
- Note
- This is a lightweight value type designed for efficiency.
◆ Domain2D() [1/3]
| MathUtils::Domain2D::Domain2D |
( |
| ) |
|
|
constexprdefault |
Default constructor - creates empty domain.
◆ Domain2D() [2/3]
| MathUtils::Domain2D::Domain2D |
( |
double | theUMin, |
|
|
double | theUMax, |
|
|
double | theVMin, |
|
|
double | theVMax ) |
|
inlineconstexpr |
Construct from bounds.
- Parameters
-
| theUMin | lower U bound |
| theUMax | upper U bound |
| theVMin | lower V bound |
| theVMax | upper V bound |
◆ Domain2D() [3/3]
| MathUtils::Domain2D::Domain2D |
( |
const Domain1D & | theUDomain, |
|
|
const Domain1D & | theVDomain ) |
|
inlineconstexpr |
Construct from two 1D domains.
- Parameters
-
| theUDomain | U parameter domain |
| theVDomain | V parameter domain |
◆ Clamp()
| void MathUtils::Domain2D::Clamp |
( |
double & | theU, |
|
|
double & | theV ) const |
|
inline |
Clamp UV to domain bounds.
- Parameters
-
| theU | U parameter (modified in place) |
| theV | V parameter (modified in place) |
◆ Contains()
| bool MathUtils::Domain2D::Contains |
( |
double | theU, |
|
|
double | theV, |
|
|
double | theTol = 0.0 ) const |
|
inline |
Check if UV point is within domain.
- Parameters
-
| theU | U parameter |
| theV | V parameter |
| theTol | tolerance for boundary check |
- Returns
- true if (theU, theV) is in domain
◆ IsFinite()
| bool MathUtils::Domain2D::IsFinite |
( |
double | theInfLimit = 1.0e100 | ) |
const |
|
inline |
Check if domain has finite bounds (not effectively infinite).
- Parameters
-
| theInfLimit | threshold for "infinity" (default 1e100) |
◆ IsLarge()
| bool MathUtils::Domain2D::IsLarge |
( |
double | theThreshold = 1000.0 | ) |
const |
|
inline |
Check if both U and V domains are "large".
- Parameters
-
| theThreshold | size threshold (default 1000) |
- Returns
- true if both U and V lengths exceed threshold
◆ IsUFullPeriod()
| bool MathUtils::Domain2D::IsUFullPeriod |
( |
double | thePeriod, |
|
|
double | theTol = 1.0e-10 ) const |
|
inline |
Check if U domain covers a full period.
- Parameters
-
| thePeriod | period of U parameter |
| theTol | tolerance |
◆ IsVFullPeriod()
| bool MathUtils::Domain2D::IsVFullPeriod |
( |
double | thePeriod, |
|
|
double | theTol = 1.0e-10 ) const |
|
inline |
Check if V domain covers a full period.
- Parameters
-
| thePeriod | period of V parameter |
| theTol | tolerance |
◆ U()
| Domain1D MathUtils::Domain2D::U |
( |
| ) |
const |
|
inlineconstexpr |
◆ ULength()
| double MathUtils::Domain2D::ULength |
( |
| ) |
const |
|
inlineconstexpr |
◆ UMid()
| double MathUtils::Domain2D::UMid |
( |
| ) |
const |
|
inlineconstexpr |
◆ V()
| Domain1D MathUtils::Domain2D::V |
( |
| ) |
const |
|
inlineconstexpr |
◆ VLength()
| double MathUtils::Domain2D::VLength |
( |
| ) |
const |
|
inlineconstexpr |
◆ VMid()
| double MathUtils::Domain2D::VMid |
( |
| ) |
const |
|
inlineconstexpr |
◆ UMax
| double MathUtils::Domain2D::UMax = 0.0 |
◆ UMin
| double MathUtils::Domain2D::UMin = 0.0 |
◆ VMax
| double MathUtils::Domain2D::VMax = 0.0 |
◆ VMin
| double MathUtils::Domain2D::VMin = 0.0 |
The documentation for this struct was generated from the following file: