ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::concentric_cylindrical2D< algebra_t > Struct Template Reference

Projection into a 2D concentric cylindrical frame (No rotation in coordinate transformation). More...

#include <detray/geometry/coordinates/concentric_cylindrical2D.hpp>

Public Types

using algebra_type = algebra_t
 Algebra backend used by this coordinate frame.
using loc_point = point2_type
 Local point type in 2D cylindrical coordinates.
using point2_type = dpoint2D<algebra_t>
 Two-dimensional point type.
using point3_type = dpoint3D<algebra_t>
 Three-dimensional point type.
using scalar_type = dscalar<algebra_t>
 Scalar type associated with the algebra backend.
using transform3_type = dtransform3D<algebra_t>
 Three-dimensional transform type.
using vector3_type = dvector3D<algebra_t>
 Three-dimensional vector type.

Static Public Member Functions

static loc_point global_to_local (const transform3_type &, const point3_type &p, const vector3_type &)
 This method transforms a point from a global cartesian 3D frame to a local 2D cylindrical point Convert a point from the global frame to this local coordinate frame.
static point3_type global_to_local_3D (const transform3_type &, const point3_type &p, const vector3_type &)
 This method transforms a point from a global cartesian 3D frame to a local 2D cylindrical point Convert a point from the global frame to this local coordinate frame.
template<typename mask_t>
static point3_type local_to_global (const transform3_type &, const mask_t &mask, const loc_point &p, const vector3_type &)
 This method transforms from a local 2D cylindrical point to a point in the global cartesian 3D frame.
static point3_type local_to_global (const transform3_type &, const point3_type &p)
 This method transforms from a local 3D cylindrical point to a point in the global cartesian 3D frame.
template<typename mask_t>
static vector3_type normal (const transform3_type &, const point2_type &p, const mask_t &)
static vector3_type normal (const transform3_type &, const point3_type &p)

Detailed Description

template<concepts::algebra algebra_t>
struct detray::concentric_cylindrical2D< algebra_t >

Projection into a 2D concentric cylindrical frame (No rotation in coordinate transformation).

Member Function Documentation

◆ global_to_local()

template<concepts::algebra algebra_t>
loc_point detray::concentric_cylindrical2D< algebra_t >::global_to_local ( const transform3_type & ,
const point3_type & p,
const vector3_type &  )
static

This method transforms a point from a global cartesian 3D frame to a local 2D cylindrical point Convert a point from the global frame to this local coordinate frame.

Parameters
pPoint in global coordinates to transform.
Returns
The point expressed in this local coordinate frame.

◆ global_to_local_3D()

template<concepts::algebra algebra_t>
point3_type detray::concentric_cylindrical2D< algebra_t >::global_to_local_3D ( const transform3_type & ,
const point3_type & p,
const vector3_type &  )
static

This method transforms a point from a global cartesian 3D frame to a local 2D cylindrical point Convert a point from the global frame to this local coordinate frame.

Parameters
pPoint in global coordinates to transform.
Returns
The point expressed in this local coordinate frame.

◆ local_to_global() [1/2]

template<concepts::algebra algebra_t>
template<typename mask_t>
point3_type detray::concentric_cylindrical2D< algebra_t >::local_to_global ( const transform3_type & ,
const mask_t & mask,
const loc_point & p,
const vector3_type &  )
static

This method transforms from a local 2D cylindrical point to a point in the global cartesian 3D frame.

Parameters
maskMask providing the cylinder radius used to embed the 2D point.
pPoint in local coordinates to transform.
Returns
The point expressed in global coordinates.

◆ local_to_global() [2/2]

template<concepts::algebra algebra_t>
point3_type detray::concentric_cylindrical2D< algebra_t >::local_to_global ( const transform3_type & ,
const point3_type & p )
static

This method transforms from a local 3D cylindrical point to a point in the global cartesian 3D frame.

Parameters
pPoint in local coordinates to transform.
Returns
The point expressed in global coordinates.

◆ normal() [1/2]

template<concepts::algebra algebra_t>
template<typename mask_t>
vector3_type detray::concentric_cylindrical2D< algebra_t >::normal ( const transform3_type & ,
const point2_type & p,
const mask_t &  )
static
Returns
the normal vector in global coordinates
Parameters
pLocal position at which to evaluate the normal.
Returns
The surface normal expressed in global coordinates.

◆ normal() [2/2]

template<concepts::algebra algebra_t>
vector3_type detray::concentric_cylindrical2D< algebra_t >::normal ( const transform3_type & ,
const point3_type & p )
static
Returns
the normal vector given a local position p
Parameters
pLocal position at which to evaluate the normal.
Returns
The surface normal expressed in global coordinates.