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