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

Infinite cone shape. More...

#include <Primitive.h>

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

Public Types

using ScalarType = TScalar
 Scalar type.
 

Public Member Functions

 InfiniteCone ()=default
 Default constructor.
 
 InfiniteCone (Vec2< ScalarType > const &sc_)
 Construct a new Infinite Cone object.
 
PBAT_HOST_DEVICE ScalarType Eval (Vec3< ScalarType > const &p) const
 Evaluate the signed distance function at a point.
 

Public Attributes

Vec2< ScalarTypesc {TScalar(0.5), TScalar(0.5)}
 sin/cos of the angle
 

Detailed Description

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

Infinite cone shape.

Template Parameters
TScalarScalar type

Constructor & Destructor Documentation

◆ InfiniteCone()

template<common::CArithmetic TScalar>
pbat::geometry::sdf::InfiniteCone< TScalar >::InfiniteCone ( Vec2< ScalarType > const & sc_)
inlineexplicit

Construct a new Infinite Cone object.

Parameters
sc_sin/cos of the angle

Member Function Documentation

◆ Eval()

template<common::CArithmetic TScalar>
PBAT_HOST_DEVICE ScalarType pbat::geometry::sdf::InfiniteCone< 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 infinite cone (negative inside, positive outside)

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