test_ray.cxx
Go to the documentation of this file.
1 #include "WireCellUtil/Point.h"
2 #include "WireCellUtil/Testing.h"
3 #include "WireCellUtil/Logging.h"
4 
5 using namespace WireCell;
6 using spdlog::info;
7 
8 int main()
9 {
10 
11  const Ray r1(Point(-1,-1,-1), Point(1,1,1));
12  const Ray r2(Point(0,0,0), Point(1,1,1));
13  info("Some rays: {}, {}", r1, r2);
14 
15  const Ray& rr1 = r1;
16  const Ray& rr2 = r2;
17  info("Some ray refs: {}, {}", rr1, rr2);
18 }
std::pair< Point, Point > Ray
A line segment running from a first (tail) to a second (head) point.
Definition: Point.h:21
void info(const char *fmt, const Args &...args)
Definition: spdlog.h:189
D3Vector< double > Point
A 3D Cartesian point in double precision.
Definition: Point.h:15
int main()
Definition: test_ray.cxx:8
Definition: Main.h:22