◆ getDx()
Get the slope denominator (dx)
- Parameters
-
- Returns
- int
◆ getDy()
Get the slope numerator (dy)
- Parameters
-
- Returns
- int
◆ getIntercept()
int Segment::getIntercept |
( |
| ) |
|
Get the segment intercept
- Parameters
-
- Returns
- int
◆ getLeftEndpoint()
std::vector< int > Segment::getLeftEndpoint |
( |
| ) |
|
Get the left endpoint of the segment
- Parameters
-
- Returns
- std::vector<int>
◆ getRightEndpoint()
std::vector< int > Segment::getRightEndpoint |
( |
| ) |
|
Get the right endpoint of the segment
- Parameters
-
- Returns
- std::vector<int>
◆ getSegID()
int Segment::getSegID |
( |
| ) |
|
Get the segment ID
- Parameters
-
- Returns
- int
◆ getYonSeg()
int Segment::getYonSeg |
( |
int |
x | ) |
|
Given the slope and intercept of this segment, return the Y value for a given X
- Parameters
-
- Returns
- int y
◆ initDual()
void Segment::initDual |
( |
| ) |
|
Initialize the dual coordinates (slope, intercept)
- Parameters
-
- Returns
- void
◆ setLeftEndpoint()
void Segment::setLeftEndpoint |
( |
int |
xl, |
|
|
int |
yl |
|
) |
| |
Set the left endpoint of the segment
- Parameters
-
- Returns
- void
◆ setRightEndpoint()
void Segment::setRightEndpoint |
( |
int |
xr, |
|
|
int |
yr |
|
) |
| |
Set the right endpoint of the segment
- Parameters
-
- Returns
- void
◆ setSegID()
void Segment::setSegID |
( |
int |
i | ) |
|
Set the segment ID
- Parameters
-
- Returns
- void
The documentation for this class was generated from the following files: