LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar::util::simple_geo::Point2D< Data > Struct Template Reference

2D point (x, y) (by default, with double precision) More...

#include "geo_vectors_utils.h"

Public Types

using Data_t = Data
 

Public Member Functions

 Point2D ()=default
 
 Point2D (Data_t x, Data_t y)
 
 Point2D (Data_t const *p)
 

Public Attributes

Data_t x = 0.
 
Data_t y = 0.
 

Detailed Description

template<typename Data = double>
struct lar::util::simple_geo::Point2D< Data >

2D point (x, y) (by default, with double precision)

Definition at line 41 of file geo_vectors_utils.h.

Member Typedef Documentation

template<typename Data = double>
using lar::util::simple_geo::Point2D< Data >::Data_t = Data

Definition at line 51 of file SimpleGeo.h.

Constructor & Destructor Documentation

template<typename Data = double>
lar::util::simple_geo::Point2D< Data >::Point2D ( )
default
template<typename Data = double>
lar::util::simple_geo::Point2D< Data >::Point2D ( Data_t  x,
Data_t  y 
)
inline

Definition at line 56 of file SimpleGeo.h.

template<typename Data = double>
lar::util::simple_geo::Point2D< Data >::Point2D ( Data_t const *  p)
inline

Definition at line 57 of file SimpleGeo.h.

57 : x(p[0]), y(p[1]) {}

Member Data Documentation

template<typename Data = double>
Data_t lar::util::simple_geo::Point2D< Data >::x = 0.

Definition at line 52 of file SimpleGeo.h.


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