Commit 93895562 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[intersect][seg-seg] add static assert

parent c640ecc6
......@@ -54,6 +54,8 @@ intersect_segment_segment(const Segment<ctype, wd>& segment1,
const Segment<ctype, wd>& segment2,
ctype eps)
{
static_assert(wd == 3, "Segment-Segment algorithm currently only works in 3d");
using ResultType = Intersection<Segment<ctype, wd>, Segment<ctype, wd>>;
using Segment = Frackit::Segment<ctype, wd>;
using Direction = typename Segment::Direction;
......
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