LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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]) {}

Member Data Documentation


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