Visual Computing Library
Loading...
Searching...
No Matches
vcl::Segment2Concept Concept Reference

A concept to check whether a type meets the requirements of a 2D segment. More...

#include <vclib/concepts/space/segment.h>

Concept definition

template<typename T>
concept vcl::Segment2Concept = SegmentConcept<T> && RemoveRef<T>::DIM == 2
A concept to check whether a type meets the requirements of a 2D segment.
Definition segment.h:91
Concept for types representing line segments in Euclidean space.
Definition segment.h:36

Detailed Description

A concept to check whether a type meets the requirements of a 2D segment.

This concept checks that the input type T satisfies the requirements of a 2D segment, which means that it must have the following properties:

  • It satisfies the requirements of the SegmentConcept.
  • It has a static constant member DIM equal to 2.
Template Parameters
TThe type to be tested for conformity to the Segment2Concept.