walberla::geometry::Cylinder Class Reference

Detailed Description

Class representing a Cylinder.

Implements body concept, i.e. a fastOverlapCheck and a contains() function, which can be used to initialize fields. For details about the body concept see BodyOverlapFunctions.h

#include <Cylinder.h>

Public Member Functions

 Cylinder (const Vector3< real_t > &_start, const Vector3< real_t > &_end, real_t _rad)
 
void setStart (const Vector3< real_t > &point)
 
void setStart (real_t newVal, uint_t coord)
 
void setEnd (const Vector3< real_t > &point)
 
void setEnd (real_t newVal, uint_t coord)
 
void setRadius (const real_t value)
 
const Vector3< real_t > & start () const
 
const Vector3< real_t > & end () const
 
const Vector3< real_t > & dir () const
 
real_t radius () const
 
real_t length () const
 
const AABB & boundingBox () const
 

Private Member Functions

void update ()
 Recalculates boundingBox_ and dir_. More...
 

Private Attributes

Vector3< real_tstart_
 
Vector3< real_tend_
 
real_t rad_
 
Vector3< real_tdir_
 
real_t len_
 
AABB boundingBox_
 

Constructor & Destructor Documentation

◆ Cylinder()

walberla::geometry::Cylinder::Cylinder ( const Vector3< real_t > &  _start,
const Vector3< real_t > &  _end,
real_t  _rad 
)
explicit

Member Function Documentation

◆ boundingBox()

const AABB& walberla::geometry::Cylinder::boundingBox ( ) const
inline

◆ dir()

const Vector3<real_t>& walberla::geometry::Cylinder::dir ( ) const
inline

◆ end()

const Vector3<real_t>& walberla::geometry::Cylinder::end ( ) const
inline

◆ length()

real_t walberla::geometry::Cylinder::length ( ) const
inline

◆ radius()

real_t walberla::geometry::Cylinder::radius ( ) const
inline

◆ setEnd() [1/2]

void walberla::geometry::Cylinder::setEnd ( const Vector3< real_t > &  point)
inline

◆ setEnd() [2/2]

void walberla::geometry::Cylinder::setEnd ( real_t  newVal,
uint_t  coord 
)
inline

◆ setRadius()

void walberla::geometry::Cylinder::setRadius ( const real_t  value)
inline

◆ setStart() [1/2]

void walberla::geometry::Cylinder::setStart ( const Vector3< real_t > &  point)
inline

◆ setStart() [2/2]

void walberla::geometry::Cylinder::setStart ( real_t  newVal,
uint_t  coord 
)
inline

◆ start()

const Vector3<real_t>& walberla::geometry::Cylinder::start ( ) const
inline

◆ update()

void walberla::geometry::Cylinder::update ( )
private

Recalculates boundingBox_ and dir_.

Member Data Documentation

◆ boundingBox_

AABB walberla::geometry::Cylinder::boundingBox_
private

◆ dir_

Vector3<real_t> walberla::geometry::Cylinder::dir_
private

◆ end_

Vector3<real_t> walberla::geometry::Cylinder::end_
private

◆ len_

real_t walberla::geometry::Cylinder::len_
private

◆ rad_

real_t walberla::geometry::Cylinder::rad_
private

◆ start_

Vector3<real_t> walberla::geometry::Cylinder::start_
private

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