Commit 49b66510 authored by Aaron Grabowy's avatar Aaron Grabowy
Browse files

Added ::scalar_t to line and ray

parent 8a4c5639
......@@ -3,7 +3,6 @@
#include <typed-geometry/types/scalars/default.hh>
#include "../dir.hh"
#include "../pos.hh"
#include "../size.hh"
#include "traits.hh"
// A line has a direction and a point lying on it
......@@ -46,8 +45,9 @@ using uline4 = line<4, u32>;
template <int D, class ScalarT>
struct line
{
using dir_t = tg::dir<D, ScalarT>;
using pos_t = tg::pos<D, ScalarT>;
using scalar_t = ScalarT;
using dir_t = dir<D, ScalarT>;
using pos_t = pos<D, ScalarT>;
pos_t pos;
dir_t dir;
......
......@@ -3,7 +3,6 @@
#include <typed-geometry/types/scalars/default.hh>
#include "../dir.hh"
#include "../pos.hh"
#include "../size.hh"
#include "traits.hh"
namespace tg
......@@ -44,8 +43,9 @@ using uray4 = ray<4, u32>;
template <int D, class ScalarT>
struct ray
{
using dir_t = tg::dir<D, ScalarT>;
using pos_t = tg::pos<D, ScalarT>;
using scalar_t = ScalarT;
using dir_t = dir<D, ScalarT>;
using pos_t = pos<D, ScalarT>;
pos_t origin;
dir_t dir;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment