Segment.
More...
#include <Segment2.h>
|
std::ostream & | operator<< (std::ostream &stream, Segment2 seg) |
|
◆ Segment2() [1/2]
Segment2::Segment2 |
( |
const Point2 & |
src_, |
|
|
const Point2 & |
trg_ |
|
) |
| |
- Parameters
-
src_ | First endpoint (source) |
trg_ | Second endpoint (target) |
◆ Segment2() [2/2]
◆ getSqLen2D()
double Segment2::getSqLen2D |
( |
| ) |
const |
◆ getSrc()
Point2 Segment2::getSrc |
( |
| ) |
const |
Get the source point
- Returns
- the source point
◆ getTrg()
Point2 Segment2::getTrg |
( |
| ) |
const |
Get the target point
- Returns
- the target point
◆ operator==()
bool Segment2::operator== |
( |
const Segment2 & |
other | ) |
const |
operator==
Undirected equality operator
◆ swapSrcTrg()
void Segment2::swapSrcTrg |
( |
| ) |
|
Internally swaps the source and target point
The documentation for this class was generated from the following file: