|
typedef VECTOR2I::extended_type | ecoord |
|
SHAPE_TYPE | m_type |
|
type of our shape
|
|
◆ BBox()
const BOX2I SHAPE_SEGMENT::BBox |
( |
int |
aClearance = 0 | ) |
const |
|
inlineoverridevirtual |
Function BBox()
Computes a bounding box of the shape, with a margin of aClearance a collision.
- Parameters
-
aClearance | how much the bounding box is expanded wrs to the minimum enclosing rectangle for the shape. |
- Returns
- the bounding box.
Implements SHAPE.
◆ Clone()
SHAPE* SHAPE_SEGMENT::Clone |
( |
| ) |
const |
|
inlineoverridevirtual |
Function Clone()
Returns a dynamically allocated copy of the shape
- Return values
-
Reimplemented from SHAPE.
◆ Collide() [1/2]
bool SHAPE_SEGMENT::Collide |
( |
const SEG & |
aSeg, |
|
|
int |
aClearance = 0 |
|
) |
| const |
|
inlineoverridevirtual |
Function Collide()
Checks if the boundary of shape (this) lies closer to the segment aSeg than aClearance, indicating a collision.
- Returns
- true, if there is a collision.
Implements SHAPE.
◆ Collide() [2/2]
bool SHAPE_SEGMENT::Collide |
( |
const VECTOR2I & |
aP, |
|
|
int |
aClearance = 0 |
|
) |
| const |
|
inlineoverridevirtual |
Function Collide()
Checks if the boundary of shape (this) lies closer to the point aP than aClearance, indicating a collision.
- Returns
- true, if there is a collision.
Reimplemented from SHAPE.
The documentation for this class was generated from the following file: