template <class T, int N>
class vtb::geometry::Line_segment
Base classes
  • public std::array< Vertex< T, N >, 2 >
Types
  • using const_reverse_iterator = typename base_type::const_reverse_iterator
  • using reverse_iterator = typename base_type::reverse_iterator
  • using difference_type = typename base_type::difference_type
  • using size_type = typename base_type::size_type
  • using const_iterator = typename base_type::const_iterator
  • using iterator = typename base_type::iterator
  • using const_reference = typename base_type::const_reference
  • using reference = typename base_type::reference
  • using const_pointer = typename base_type::const_pointer
  • using pointer = typename base_type::pointer
  • using value_type = typename base_type::value_type
  • using scalar_type = T
Fields
  • constexpr const int dimensions
Methods
  • plane() const -> vtb::geometry::Plane< float, 2 >
  • gnuplot(std::ostream &) const -> void
  • invert() -> void
  • plane() const -> Plane< T, 2 >
  • contains(const_reference c, T eps) const -> bool
  • centre() const -> value_type
  • length() const -> scalar_type
  • flip() -> void
  • degenerate() const -> bool
  • degenerate(scalar_type eps) const -> bool
  • interior_contains(const_reference v, T eps) const -> bool
  • border_contains(const_reference v, scalar_type eps) const -> bool
  • border_contains(const_reference v) const -> bool
  • Line_segment(const_reference a, const_reference b)
template <class T, int N>
struct vtb::geometry::is_figure< Line_segment< T, N > >
Base classes
  • public true_type
template <class T, int N>
centroid(const Line_segment< T, N > & s) -> Vertex< T, N >
template <class T, int N>
operator==(const Line_segment< T, N > & lhs, const Line_segment< T, N > & rhs) -> bool
template <int dim, class T, int N>
intersection_point(const Line_segment< T, N > & segment, T level) -> Vertex< T, N >
template <class T, int N>
operator!=(const Line_segment< T, N > & lhs, const Line_segment< T, N > & rhs) -> bool
template <class T, int N>
operator<(const Line_segment< T, N > & lhs, const Line_segment< T, N > & rhs) -> bool
template <class T, int N>
intersection_point(const Plane< T, N > & plane, const Line_segment< T, N > & segment) -> Vertex< T, N >
template <class T, int N>
near(const Line_segment< T, N > & lhs, const Line_segment< T, N > & rhs, T eps) -> bool
template <class T, int N>
compare(const Plane< T, N > plane, const Line_segment< T, N > & s, T eps) -> Vertex< Plane_position, 2 >