Public Types | Public Member Functions | Public Attributes | List of all members
geo::DecomposedVector< ProjVector > Struct Template Reference

#include <Decomposer.h>

Public Types

using Projection_t = ProjVector
 Type for 2D projection. More...
 
using Distance_t = decltype(geo::vect::mag2(std::declval< Projection_t >()))
 Type for distance from plane. More...
 

Public Member Functions

 DecomposedVector ()=default
 
 DecomposedVector (Projection_t const &projection, Distance_t distance)
 
 DecomposedVector (Distance_t distance, Projection_t const &projection)
 

Public Attributes

Projection_t projection
 Projection of the vector on the plane. More...
 
Distance_t distance
 Distance of the vector from the plane. More...
 

Detailed Description

template<typename ProjVector>
struct geo::DecomposedVector< ProjVector >

Structure hosting projections of a 3D vector (or point ) on the plane

Template Parameters
ProjVectortype for 2D vector projection

Definition at line 143 of file Decomposer.h.

Member Typedef Documentation

template<typename ProjVector >
using geo::DecomposedVector< ProjVector >::Distance_t = decltype(geo::vect::mag2(std::declval<Projection_t>()))

Type for distance from plane.

Definition at line 148 of file Decomposer.h.

template<typename ProjVector >
using geo::DecomposedVector< ProjVector >::Projection_t = ProjVector

Type for 2D projection.

Definition at line 145 of file Decomposer.h.

Constructor & Destructor Documentation

template<typename ProjVector >
geo::DecomposedVector< ProjVector >::DecomposedVector ( )
default
template<typename ProjVector >
geo::DecomposedVector< ProjVector >::DecomposedVector ( Projection_t const &  projection,
Distance_t  distance 
)
inline

Definition at line 157 of file Decomposer.h.

Projection_t projection
Projection of the vector on the plane.
Definition: Decomposer.h:151
Distance_t distance
Distance of the vector from the plane.
Definition: Decomposer.h:152
template<typename ProjVector >
geo::DecomposedVector< ProjVector >::DecomposedVector ( Distance_t  distance,
Projection_t const &  projection 
)
inline

Definition at line 160 of file Decomposer.h.

Projection_t projection
Projection of the vector on the plane.
Definition: Decomposer.h:151
Distance_t distance
Distance of the vector from the plane.
Definition: Decomposer.h:152

Member Data Documentation

template<typename ProjVector >
Distance_t geo::DecomposedVector< ProjVector >::distance

Distance of the vector from the plane.

Definition at line 152 of file Decomposer.h.

template<typename ProjVector >
Projection_t geo::DecomposedVector< ProjVector >::projection

Projection of the vector on the plane.

Definition at line 151 of file Decomposer.h.


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