EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
EBGeometry::Fused::ShiftOp< T, IsAnnulus > Struct Template Reference

Offset (v - r) or annulus (|v| - delta). More...

#include <EBGeometry_Fused.hpp>

Public Member Functions

template<class O >
T evaluate (const O &a_operands, const Vec3T< T > &a_point) const noexcept
 The value.
 
template<class O >
BoundingVolumes::AABBT< T > box (const O &a_operands) const
 The box: the operand's, grown by max(0, r) or max(0, delta).
 

Static Public Member Functions

template<class C >
static constexpr DistanceQuality quality () noexcept
 Distance quality. An annulus keeps the operand's; an offset is a bound at best, since a negative offset (an erosion) is only a bound, whatever the operand.
 

Public Attributes

T m_amount
 The offset r, or the half-thickness delta.
 

Detailed Description

template<class T, bool IsAnnulus>
struct EBGeometry::Fused::ShiftOp< T, IsAnnulus >

Offset (v - r) or annulus (|v| - delta).

Template Parameters
TFloating-point precision.
IsAnnulusWhether this is an annulus.

Member Function Documentation

◆ box()

template<class T , bool IsAnnulus>
template<class O >
BoundingVolumes::AABBT< T > EBGeometry::Fused::ShiftOp< T, IsAnnulus >::box ( const O &  a_operands) const
inline

The box: the operand's, grown by max(0, r) or max(0, delta).

Template Parameters
OOperands type.
Parameters
[in]a_operandsOperands.
Returns
The box.

◆ evaluate()

template<class T , bool IsAnnulus>
template<class O >
T EBGeometry::Fused::ShiftOp< T, IsAnnulus >::evaluate ( const O &  a_operands,
const Vec3T< T > &  a_point 
) const
inlinenoexcept

The value.

Template Parameters
OOperands type.
Parameters
[in]a_operandsOperands.
[in]a_pointPoint.
Returns
The value.

◆ quality()

template<class T , bool IsAnnulus>
template<class C >
static constexpr DistanceQuality EBGeometry::Fused::ShiftOp< T, IsAnnulus >::quality ( )
inlinestaticconstexprnoexcept

Distance quality. An annulus keeps the operand's; an offset is a bound at best, since a negative offset (an erosion) is only a bound, whatever the operand.

Template Parameters
COperand type.
Returns
The quality.

The documentation for this struct was generated from the following file: