SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::Sphere Class Referencefinal

#include <sphere.h>

Public Member Functions

Real3 GetCenter () const
real GetRadius () const
bool operator!= (Sphere const &other) const =default
bool operator== (Sphere const &other) const =default
 Sphere ()=default
 Sphere (Real3 const &center, real radius)
 Sphere (Vec4r center, real radius)
 Sphere (Vec4r packedCenterAndRadius)
Vec4r VGetCenter () const
Vec4r VGetPacked () const

Public Attributes

Real3 center {}
 Center of the sphere [m].
real radius {}
 Radius of the sphere [m].

Detailed Description

Definition at line 35 of file sphere.h.

Constructor & Destructor Documentation

◆ Sphere() [1/4]

superdex::Sphere::Sphere ( )
inlinedefault

◆ Sphere() [2/4]

superdex::Sphere::Sphere ( Vec4r center,
real radius )
inline

Definition at line 41 of file sphere.h.

◆ Sphere() [3/4]

superdex::Sphere::Sphere ( Real3 const & center,
real radius )
inline

Definition at line 42 of file sphere.h.

◆ Sphere() [4/4]

superdex::Sphere::Sphere ( Vec4r packedCenterAndRadius)
inline

Definition at line 43 of file sphere.h.

Member Function Documentation

◆ GetCenter()

Real3 superdex::Sphere::GetCenter ( ) const
inlinenodiscard

Definition at line 46 of file sphere.h.

◆ GetRadius()

real superdex::Sphere::GetRadius ( ) const
inlinenodiscard

Definition at line 50 of file sphere.h.

◆ operator!=()

bool superdex::Sphere::operator!= ( Sphere const & other) const
default

◆ operator==()

bool superdex::Sphere::operator== ( Sphere const & other) const
default

◆ VGetCenter()

Vec4r superdex::Sphere::VGetCenter ( ) const
inlinenodiscard

Definition at line 58 of file sphere.h.

◆ VGetPacked()

Vec4r superdex::Sphere::VGetPacked ( ) const
inlinenodiscard

Definition at line 54 of file sphere.h.

Member Data Documentation

◆ center

Real3 superdex::Sphere::center {}

Center of the sphere [m].

Definition at line 37 of file sphere.h.

◆ radius

real superdex::Sphere::radius {}

Radius of the sphere [m].

Definition at line 38 of file sphere.h.


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