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::Plane< TScalar > Struct Template Reference

Plane shape with normal \( n=(0,0,1) \) and point on the plane \( o=(0,0,0) \). More...

#include <Primitive.h>

Inheritance diagram for pbat::geometry::sdf::Plane< TScalar >:
pbat::geometry::sdf::Primitive

Public Types

using ScalarType = TScalar
 Scalar type.
 

Public Member Functions

PBAT_HOST_DEVICE ScalarType Eval (Vec3< ScalarType > const &p) const
 Evaluate the signed distance function at a point.
 

Detailed Description

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

Plane shape with normal \( n=(0,0,1) \) and point on the plane \( o=(0,0,0) \).

Template Parameters
TScalarScalar type

Member Function Documentation

◆ Eval()

template<common::CArithmetic TScalar>
PBAT_HOST_DEVICE ScalarType pbat::geometry::sdf::Plane< TScalar >::Eval ( Vec3< ScalarType > const & p) const
inline

Evaluate the signed distance function at a point.

Parameters
pPoint in 3D space
Returns
Signed distance to the plane (negative inside, positive outside)

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