cbop::Segment_2
cbop::Segment_2
#include <segment_2.h>
Public Functions
| Name | |
|---|---|
| Segment_2() | |
| Segment_2(const Point_2 & source, const Point_2 & target) | |
| void | setSource(const Point_2 & source) |
| void | setTarget(const Point_2 & target) |
| const Point_2 & | source() const |
| const Point_2 & | target() const |
| const Point_2 & | min() const |
| const Point_2 & | max() const |
| bool | degenerate() const |
| bool | is_vertical() const |
| Segment_2 & | changeOrientation() |
Public Functions Documentation
function Segment_2
inline Segment_2()Default constructor
function Segment_2
inline Segment_2(
const Point_2 & source,
const Point_2 & target
)Constructor from two points
function setSource
inline void setSource(
const Point_2 & source
)Set the source point
function setTarget
inline void setTarget(
const Point_2 & target
)Set the target point
function source
inline const Point_2 & source() constGet the source point
function target
inline const Point_2 & target() constGet the target point
function min
inline const Point_2 & min() constReturn the point of the segment with lexicographically smallest coordinate
function max
inline const Point_2 & max() constReturn the point of the segment with lexicographically largest coordinate
function degenerate
inline bool degenerate() constfunction is_vertical
inline bool is_vertical() constfunction changeOrientation
inline Segment_2 & changeOrientation()Change the segment orientation
Updated on 2026-11-13 at 20:25:42 +0000