Template Class GenericLine¶
Defined in File generic_line.h
Inheritance Relationships¶
Derived Type¶
private bitrl::utils::trajectory::LineSegmentLink< dim, NodeData, SegmentData >(Template Class LineSegmentLink)
Class Documentation¶
-
template<int dim>
class GenericLine¶ class GenericLine. Represents a generic line with vertex VertexType The equation of a linein l=Ax + By + C
Subclassed by bitrl::utils::trajectory::LineSegmentLink< dim, NodeData, SegmentData >
Public Functions
-
GenericLine()¶
Constructor.
-
GenericLine(const vertex_type &p1, const vertex_type &p2)¶
Constructor.
-
GenericLine(const vertex_type &p1, const vertex_type &p2, uint_t id)¶
Constructor.
-
const vertex_type &get_vertex(uint_t v) const¶
Returns the v-th vertex of the segment.
-
vertex_type &get_vertex(uint_t v)¶
Returns the v-th vertex of the segment.
-
inline bool has_valid_id() const noexcept¶
Returns true iff id_ != rlenvscpp::consts::INVALID_ID.
-
real_t distance(const vertex_type &n) const¶
Returns the perpendicular distance from the line to the node.
-
real_t distance(const GenericLine<2>::vertex_type &n) const¶
-
GenericLine()¶