Celeritas 0.6.0-110+develop.c7dc37d1
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
celeritas::orangeinp::SpecialTrapezoid Class Reference

Polygon bound by top/bottom z segments, one of which may be a single point. More...

#include <CsgTypes.hh>

Classes

struct  ZSegment
 

Public Types

Type aliases
enum class  Variety { quad , pointy_top , pointy_bot }
 
using VecReal2 = std::vector< Real2 >
 

Public Member Functions

 SpecialTrapezoid (ZSegment &&bot, ZSegment &&top)
 Construct from bottom/top z segments.
 
ZSegment constbot () const
 ACCESSORS ///.
 
ZSegment consttop () const
 Get the top z segment.
 
Variety variety () const
 Get the variety.
 
real_type abs_tol () const
 Get the absolute tolerance for soft equality.
 
VecReal2 unique_points () const
 Get the unique points in counterclockwise order, from the upper right.
 

Detailed Description

Polygon bound by top/bottom z segments, one of which may be a single point.

Thus, valid polygons are:

1) quadrilaterals with two segments parallel to the z axis, 2) triangles with one segment parallel to the z axis.

Member Function Documentation

◆ bot()

ZSegment const & celeritas::orangeinp::SpecialTrapezoid::bot ( ) const
inline

ACCESSORS ///.

Get the bottom z segment


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