A vector guaranteed to be normalized (length = 1).  
 More...
#include <BaseVector.hpp>
|  | 
| template<typename CollectionT > | 
| static Normal< CoordType > & | average (const CollectionT &normals) | 
|  | Returns the average of all normals in the given collection.  More... 
 | 
|  | 
|  | 
| template<typename T , typename S > | 
| Normal< T > | operator* (const Eigen::Matrix< S, 4, 4 > &mat, const Normal< T > &normal) | 
|  | 
template<typename CoordType>
struct lvr2::Normal< CoordType >
A vector guaranteed to be normalized (length = 1). 
If you have an object of type Normal, you can be sure that it always has the length 1. The easiest way to create a Normal is to use the method Vector::normalized(). 
Definition at line 49 of file BaseVector.hpp.
◆ Normal() [1/3]
template<typename CoordType > 
 
 
◆ Normal() [2/3]
template<typename CoordType > 
 
Creates a normal vector from the underlying vector representation. 
- Parameters
- 
  
    | base | This vector must not be the null-vector, else the behavior is undefined. |  
 
 
 
◆ Normal() [3/3]
template<typename CoordType > 
      
 
Initializes the normal with the given coordinates. 
Note that the given coordinates must not form the null-vector, else the behavior is undefined. 
 
 
◆ average()
template<typename CoordType > 
template<typename CollectionT > 
  
  | 
        
          | static Normal<CoordType>& lvr2::Normal< CoordType >::average | ( | const CollectionT & | normals | ) |  |  | static | 
 
Returns the average of all normals in the given collection. 
The collection need to work with a range-based for-loop and its elements need to be normals. It has to contain at least one element. 
 
 
◆ getX()
template<typename CoordType > 
 
 
◆ getY()
template<typename CoordType > 
 
 
◆ getZ()
template<typename CoordType > 
 
 
◆ operator+()
template<typename CoordType > 
template<typename T > 
      
 
 
◆ operator-() [1/2]
template<typename CoordType > 
      
 
 
◆ operator-() [2/2]
template<typename CoordType > 
template<typename T > 
      
 
 
◆ operator=()
template<typename CoordType > 
template<typename T > 
      
 
Allows to assign Vectors to normals. Vector data will be copied and normalized. 
 
 
◆ operator*
template<typename CoordType > 
template<typename T , typename S > 
  
  | 
        
          | Normal<T> operator* | ( | const Eigen::Matrix< S, 4, 4 > & | mat, |  
          |  |  | const Normal< T > & | normal |  
          |  | ) |  |  |  | friend | 
 
 
The documentation for this struct was generated from the following files: