|
enum | VERTEX_CLASSIFICATION { LEFT,
RIGHT,
ON
} |
|
|
static bool | isVertexLeft (const Vertex &a, const Vertex &b, const Vertex &c) |
|
static bool | isVertexLeftOn (const Vertex &a, const Vertex &b, const Vertex &c) |
|
static bool | isVertexRight (const Vertex &a, const Vertex &b, const Vertex &c) |
|
static bool | isVertexRightOn (const Vertex &a, const Vertex &b, const Vertex &c) |
|
static bool | isVertexOn (const Vertex &a, const Vertex &b, const Vertex &c) |
|
static VERTEX_CLASSIFICATION | classifyVertexToLine (const Vertex &a, const Vertex &b, const Vertex &c) |
|
static bool | doesIntersectProperly (const Vertex &a, const Vertex &b, const Vertex &c, const Vertex &d) |
|
static bool | isOnLine (const Vertex &a, const Vertex &b, const Vertex &c) |
|
static bool | isOnLineStrict (const Vertex &a, const Vertex &b, const Vertex &c) |
|
◆ isVertexLeft()
static bool Sword25::Line::isVertexLeft |
( |
const Vertex & |
a, |
|
|
const Vertex & |
b, |
|
|
const Vertex & |
c |
|
) |
| |
|
inlinestatic |
Determines whether a piont is left of a line
- Parameters
-
a | The start point of a line |
b | The end point of a line |
c | The test point |
- Returns
- Returns true if the point is to the left of the line. If the point is to the right of the line or on the line, false is returned.
◆ isVertexRight()
static bool Sword25::Line::isVertexRight |
( |
const Vertex & |
a, |
|
|
const Vertex & |
b, |
|
|
const Vertex & |
c |
|
) |
| |
|
inlinestatic |
Determines whether a piont is right of a line
- Parameters
-
a | The start point of a line |
b | The end point of a line |
c | The test point |
- Returns
- Returns true if the point is to the right of the line. If the point is to the right of the line or on the line, false is returned.
◆ isVertexOn()
static bool Sword25::Line::isVertexOn |
( |
const Vertex & |
a, |
|
|
const Vertex & |
b, |
|
|
const Vertex & |
c |
|
) |
| |
|
inlinestatic |
Determines whether a piont is on a line
- Parameters
-
a | The start point of a line |
b | The end point of a line |
c | The test point |
- Returns
- Returns true if the point is on the line, false otherwise.
◆ classifyVertexToLine()
static VERTEX_CLASSIFICATION Sword25::Line::classifyVertexToLine |
( |
const Vertex & |
a, |
|
|
const Vertex & |
b, |
|
|
const Vertex & |
c |
|
) |
| |
|
inlinestatic |
Determines where a point is relative to a line.
- Parameters
-
a | The start point of a line |
b | The end point of a line |
c | The test point |
- Returns
- LEFT is returned if the point is to the left of the line. RIGHT is returned if the point is to the right of the line. ON is returned if the point is on the line.
◆ doesIntersectProperly()
static bool Sword25::Line::doesIntersectProperly |
( |
const Vertex & |
a, |
|
|
const Vertex & |
b, |
|
|
const Vertex & |
c, |
|
|
const Vertex & |
d |
|
) |
| |
|
inlinestatic |
Determines whether two lines intersect
- Parameters
-
a | The start point of the first line |
b | The end point of the first line |
c | The start point of the second line |
d | The end point of the second line |
◆ isOnLine()
static bool Sword25::Line::isOnLine |
( |
const Vertex & |
a, |
|
|
const Vertex & |
b, |
|
|
const Vertex & |
c |
|
) |
| |
|
inlinestatic |
Determines whether a point is on a line segment
- Parameters
-
a | The start point of a line |
b | The end point of a line |
c | The test point |
The documentation for this class was generated from the following file: