| 
    HyperspaceExplorer 0.7.1 
   | 
 
A four-dimensional pyramid, also known as hypersimplex. More...
#include <ObjectImplementations.h>


Public Member Functions | |
| Pyramid (double _a, const VecMath::Vector< 4 > &_Center=VecMath::Vector< 4 >(0., 0., 0., 0.)) | |
| Pyramid (hypersimplex) constructor.   | |
| virtual std::string | getFunctionName () const | 
| virtual void | SetParameters (const ParameterMap &parms) | 
| Set parameters to the Displayable.   | |
Protected Member Functions | |
| virtual void | Initialize () | 
| Actually creates the Pyramid.   | |
| void | DeclareTriangle (unsigned, unsigned, unsigned, unsigned) | 
Declare a triangle in the Surface array.   | |
Protected Attributes | |
| VecMath::Vector< 4 > | center | 
| location  | |
| double | a | 
| size  | |
Static Protected Attributes | |
| static constexpr unsigned | num_vertices = 5 | 
| static constexpr unsigned | num_faces = 10 | 
A four-dimensional pyramid, also known as hypersimplex.
| Pyramid::Pyramid | ( | double | _a, | 
| const VecMath::Vector< 4 > & | _center = VecMath::Vector<4> (0., 0., 0., 0.)  | 
        ||
| ) | 
Pyramid (hypersimplex) constructor.
| _center | center | 
| _a | side_length/2 | 
References Displayable::declareParameter(), and Initialize().

| void Pyramid::DeclareTriangle | ( | unsigned | i, | 
| unsigned | a, | ||
| unsigned | b, | ||
| unsigned | c | ||
| ) |  [protected] | 
        
Declare a triangle in the Surface array. 
| i | index of the square | 
| a | index of vertex 1 | 
| b | index of vertex 2 | 
| c | index of vertex 3 | 
References a.
Referenced by Initialize().

| virtual std::string Pyramid::getFunctionName | ( | ) |  const [inline, virtual] | 
        
| void Pyramid::Initialize | ( | void | ) |  [protected, virtual] | 
        
Actually creates the Pyramid.
Reimplemented from Object.
Reimplemented in Gasket.
References a, center, DeclareTriangle(), Object::setX(), size(), sqrt(), and VertexHolder< 4, 1, double >::X().
Referenced by Pyramid().


| virtual void Pyramid::SetParameters | ( | const ParameterMap & | ) |  [inline, virtual] | 
        
Set parameters to the Displayable.
Reimplemented from Displayable.
Reimplemented in Gasket.
References a, std::map< _Key, _Tp, _Compare, _Alloc >::begin(), std::map< _Key, _Tp, _Compare, _Alloc >::end(), and Displayable::setParameter().

                1.7.4
                 - 
                Hosted by