PLaSK library
Loading...
Searching...
No Matches
plask::Primitive< 3 > Struct Reference

Specialization of Primitive, which define types of primitives and constants in space with 3 dimensions. More...

#include <plask/geometry/primitives.hpp>

Collaboration diagram for plask::Primitive< 3 >:
[legend]

Public Types

enum  Direction { DIRECTION_LONG = 0 , DIRECTION_TRAN = 1 , DIRECTION_VERT = 2 }
 
typedef Box3D Box
 Rectangle type (cuboid) in 3d space.
 
typedef Vec< 3, doubleDVec
 Real (double) vector type in 3d space.
 

Static Public Member Functions

static void ensureIsValidDirection (unsigned direction)
 
static void ensureIsValid2DDirection (unsigned direction)
 
static bool vecFuzzyCompare (const DVec &a, const DVec &b)
 Compare if a < with reasonable tollerance.
 

Static Public Attributes

static const int dim = 3
 Number of dimensions (3).
 
static const DVec ZERO_VEC = Vec<3>(0.0, 0.0, 0.0)
 Zeroed 3d vector.
 
static const DVec NAN_VEC = Vec<3>(std::numeric_limits<double>::quiet_NaN(), std::numeric_limits<double>::quiet_NaN(), std::numeric_limits<double>::quiet_NaN())
 NaNed 3d vector.
 
static const Box INF_BOX = Box3D(- std::numeric_limits<double>::infinity(), - std::numeric_limits<double>::infinity(), - std::numeric_limits<double>::infinity(), std::numeric_limits<double>::infinity(), std::numeric_limits<double>::infinity(), std::numeric_limits<double>::infinity())
 infinit box
 

Detailed Description

Specialization of Primitive, which define types of primitives and constants in space with 3 dimensions.

Definition at line 807 of file primitives.hpp.

Member Typedef Documentation

◆ Box

Rectangle type (cuboid) in 3d space.

Definition at line 809 of file primitives.hpp.

◆ DVec

Real (double) vector type in 3d space.

Definition at line 812 of file primitives.hpp.

Member Enumeration Documentation

◆ Direction

enum plask::Primitive< 3 >::Direction
Enumerator
DIRECTION_LONG 
DIRECTION_TRAN 
DIRECTION_VERT 

Definition at line 826 of file primitives.hpp.

Member Function Documentation

◆ ensureIsValid2DDirection()

static void plask::Primitive< 3 >::ensureIsValid2DDirection ( unsigned  direction)
inlinestatic

Definition at line 833 of file primitives.hpp.

◆ ensureIsValidDirection()

static void plask::Primitive< 3 >::ensureIsValidDirection ( unsigned  direction)
inlinestatic

Definition at line 828 of file primitives.hpp.

◆ vecFuzzyCompare()

static bool plask::Primitive< 3 >::vecFuzzyCompare ( const DVec a,
const DVec b 
)
inlinestatic

Compare if a < with reasonable tollerance.

Definition at line 841 of file primitives.hpp.

Member Data Documentation

◆ dim

const int plask::Primitive< 3 >::dim = 3
static

Number of dimensions (3).

Definition at line 815 of file primitives.hpp.

◆ INF_BOX

const Primitive< 3 >::Box plask::Primitive< 3 >::INF_BOX = Box3D(- std::numeric_limits<double>::infinity(), - std::numeric_limits<double>::infinity(), - std::numeric_limits<double>::infinity(), std::numeric_limits<double>::infinity(), std::numeric_limits<double>::infinity(), std::numeric_limits<double>::infinity())
static

infinit box

Definition at line 824 of file primitives.hpp.

◆ NAN_VEC

const Primitive< 3 >::DVec plask::Primitive< 3 >::NAN_VEC = Vec<3>(std::numeric_limits<double>::quiet_NaN(), std::numeric_limits<double>::quiet_NaN(), std::numeric_limits<double>::quiet_NaN())
static

NaNed 3d vector.

Definition at line 821 of file primitives.hpp.

◆ ZERO_VEC

const Primitive< 3 >::DVec plask::Primitive< 3 >::ZERO_VEC = Vec<3>(0.0, 0.0, 0.0)
static

Zeroed 3d vector.

Definition at line 818 of file primitives.hpp.


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