wfmath  1.0.3
A math library for the Worldforge system.
line.cpp
1 // line.cpp (Line<> implementation)
2 //
3 // The WorldForge Project
4 // Copyright (C) 2012 The WorldForge Project
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 //
20 // For information about WorldForge and its authors, please contact
21 // the Worldforge Web Site at http://www.worldforge.org.
22 
23 // Author: Alistair Riddoch
24 // Created: 2011-1-27
25 
26 #include "line_funcs.h"
27 
28 #include <wfmath/axisbox.h>
29 #include <wfmath/ball.h>
30 #include <wfmath/vector.h>
31 
32 namespace WFMath {
33 
34 template class Line<2>;
35 template class Line<3>;
36 
37 static_assert(std::is_standard_layout<Line<3>>::value, "Line should be standard layout.");
38 
39 static_assert(std::is_standard_layout<Line<2>>::value, "Line should be standard layout.");
40 }
WFMath
Generic library namespace.
Definition: shape.h:41