PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
pbat::geometry::sdf::ExclusiveOr< TScalar > Struct Template Reference

Exclusive or operation. More...

#include <BinaryNode.h>

Inheritance diagram for pbat::geometry::sdf::ExclusiveOr< TScalar >:
pbat::geometry::sdf::BinaryNode

Public Types

using ScalarType = TScalar
 Scalar type.
 

Public Member Functions

PBAT_HOST_DEVICE ScalarType Eval (ScalarType sd1, ScalarType sd2) const
 Evaluate the signed distance function of the exclusive or of two shapes.
 

Detailed Description

template<common::CArithmetic TScalar>
struct pbat::geometry::sdf::ExclusiveOr< TScalar >

Exclusive or operation.

Template Parameters
TScalarScalar type

Member Function Documentation

◆ Eval()

template<common::CArithmetic TScalar>
PBAT_HOST_DEVICE ScalarType pbat::geometry::sdf::ExclusiveOr< TScalar >::Eval ( ScalarType sd1,
ScalarType sd2 ) const
inline

Evaluate the signed distance function of the exclusive or of two shapes.

Parameters
sd1Signed distance to the first shape
sd2Signed distance to the second shape
Returns
Signed distance to the exclusive or of two shapes

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