Regina Calculation Engine
Public Member Functions
regina::NAngleStructureVector Class Reference

A vector of integers used to indirectly store the individual angles in an angle structure. More...

#include <angle/nanglestructure.h>

Inheritance diagram for regina::NAngleStructureVector:
regina::NRay regina::NVector< NLargeInteger >

List of all members.

Public Member Functions

 NAngleStructureVector (unsigned length)
 Creates a new vector all of whose entries are initialised to zero.
 NAngleStructureVector (const NVector< NLargeInteger > &cloneMe)
 Creates a new vector that is a clone of the given vector.

Detailed Description

A vector of integers used to indirectly store the individual angles in an angle structure.

This vector will contain one member per angle plus a final scaling member; to obtain the actual angle in the angle structure one should divide the corresonding angle member by the scaling member and then multiply by pi.

The reason for using this obfuscated representation is so we can use the NDoubleDescription vertex enumeration routines to calculate vertex angle structures.

If there are t tetrahedra in the underlying triangulation, there will be precisely 3t+1 elements in this vector. The first three elements will be the angle members for the first tetrahedron, the next three for the second tetrahedron and so on. For each tetraheron, the three individual elements are the angle members for vertex splittings 0, 1 and 2 (see NAngleStructure::getAngle()). The final element of the vector is the scaling member as described above.

Test:
Included in the test suite.
Python:
Not present.

Constructor & Destructor Documentation

Creates a new vector all of whose entries are initialised to zero.

Parameters:
lengththe number of elements in the new vector.

Creates a new vector that is a clone of the given vector.

Parameters:
cloneMethe vector to clone.

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

Copyright © 1999-2011, The Regina development team
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).