argos::CCylinder Class Reference

#include <cylinder.h>

Public Member Functions

 CCylinder (Real f_radius, Real f_height, const CVector3 &c_base_pos=CVector3(), const CVector3 &c_axis=CVector3::Z)
 
Real GetRadius () const
 
void SetRadius (Real f_radius)
 
Real GetHeight () const
 
void SetHeight (Real f_height)
 
const CVector3GetBasePosition () const
 
void SetBasePosition (const CVector3 &c_base_pos)
 
const CVector3GetAxis () const
 
void SetAxis (const CVector3 &c_axis)
 
bool Intersects (Real &f_t_on_ray, const CRay3 &c_ray)
 

Detailed Description

Definition at line 19 of file cylinder.h.

Constructor & Destructor Documentation

◆ CCylinder()

argos::CCylinder::CCylinder ( Real  f_radius,
Real  f_height,
const CVector3 c_base_pos = CVector3(),
const CVector3 c_axis = CVector3::Z 
)
inline

Definition at line 23 of file cylinder.h.

Member Function Documentation

◆ GetAxis()

const CVector3& argos::CCylinder::GetAxis ( ) const
inline

Definition at line 57 of file cylinder.h.

◆ GetBasePosition()

const CVector3& argos::CCylinder::GetBasePosition ( ) const
inline

Definition at line 49 of file cylinder.h.

◆ GetHeight()

Real argos::CCylinder::GetHeight ( ) const
inline

Definition at line 41 of file cylinder.h.

◆ GetRadius()

Real argos::CCylinder::GetRadius ( ) const
inline

Definition at line 33 of file cylinder.h.

◆ Intersects()

bool argos::CCylinder::Intersects ( Real f_t_on_ray,
const CRay3 c_ray 
)

Definition at line 9 of file cylinder.cpp.

◆ SetAxis()

void argos::CCylinder::SetAxis ( const CVector3 c_axis)
inline

Definition at line 61 of file cylinder.h.

◆ SetBasePosition()

void argos::CCylinder::SetBasePosition ( const CVector3 c_base_pos)
inline

Definition at line 53 of file cylinder.h.

◆ SetHeight()

void argos::CCylinder::SetHeight ( Real  f_height)
inline

Definition at line 45 of file cylinder.h.

◆ SetRadius()

void argos::CCylinder::SetRadius ( Real  f_radius)
inline

Definition at line 37 of file cylinder.h.