PLaSK library
|
Specialization of Primitive, which define types of primitives and constants in space with 3 dimensions. More...
#include <plask/geometry/primitives.hpp>
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, double > | DVec |
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 | |
Specialization of Primitive, which define types of primitives and constants in space with 3 dimensions.
Definition at line 807 of file primitives.hpp.
typedef Box3D plask::Primitive< 3 >::Box |
Rectangle type (cuboid) in 3d space.
Definition at line 809 of file primitives.hpp.
typedef Vec<3, double> plask::Primitive< 3 >::DVec |
Real (double) vector type in 3d space.
Definition at line 812 of file primitives.hpp.
enum plask::Primitive< 3 >::Direction |
Enumerator | |
---|---|
DIRECTION_LONG | |
DIRECTION_TRAN | |
DIRECTION_VERT |
Definition at line 826 of file primitives.hpp.
|
inlinestatic |
Definition at line 833 of file primitives.hpp.
|
inlinestatic |
Definition at line 828 of file primitives.hpp.
Compare if a
< with reasonable tollerance.
Definition at line 841 of file primitives.hpp.
|
static |
Number of dimensions (3).
Definition at line 815 of file primitives.hpp.
|
static |
infinit box
Definition at line 824 of file primitives.hpp.
|
static |
NaNed 3d vector.
Definition at line 821 of file primitives.hpp.
|
static |
Zeroed 3d vector.
Definition at line 818 of file primitives.hpp.