Public Types | Public Member Functions | Public Attributes | List of all members
lar::util::simple_geo::Point2D< Data > Struct Template Reference

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

#include <SimpleGeo.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 52 of file SimpleGeo.h.

Member Typedef Documentation

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

Definition at line 53 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 58 of file SimpleGeo.h.

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

Definition at line 59 of file SimpleGeo.h.

59 : x(p[0]), y(p[1]) {}
p
Definition: test.py:223

Member Data Documentation

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

Definition at line 54 of file SimpleGeo.h.

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

Definition at line 55 of file SimpleGeo.h.


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