Line

Functions

Line

int

front

int

back

Line

Flip

Detailed Description

class Line

A class used to denote a line segment by its front and back indices.

Public Functions

Line(int front_index, int back_index)

Constructs a line with the provided indices.

inline int front() const

Returns the line’s front index.

inline int back() const

Returns the line’s back index.

Line Flip() const

Returns a line with the current line’s indices flipped.