Geometry, graphs and interpolation.
More...
|
| bool | is_convex (Vector2f A, Vector2f B, Vector2f C, bool clockwise=true) |
| | check if the angle is convex or concave
|
| |
| bool | is_concave (Vector2f A, Vector2f B, Vector2f C, bool clockwise=true) |
| | check if the angle is concave
|
| |
Geometry, graphs and interpolation.
Triangulation and Delaunay, minimum spanning trees and traversals, linear and cubic interpolation.
◆ GraphKind
| Enumerator |
|---|
| Directed | |
| Undirected | |
◆ is_concave()
| bool is_concave |
( |
Vector2f |
A, |
|
|
Vector2f |
B, |
|
|
Vector2f |
C, |
|
|
bool |
clockwise = true |
|
) |
| |
|
inline |
check if the angle is concave
- Parameters
-
- Returns
- true
-
false
Polygon order | cross < 0 | cross > 0 | cross = 0 Clockwise | Convex | Concave | Straight Counter-clockwise | Concave | Convex | Straight
◆ is_convex()
| bool is_convex |
( |
Vector2f |
A, |
|
|
Vector2f |
B, |
|
|
Vector2f |
C, |
|
|
bool |
clockwise = true |
|
) |
| |
|
inline |
check if the angle is convex or concave
- Parameters
-
- Returns
- true
-
false
Polygon order | cross < 0 | cross > 0 | cross = 0 Clockwise | Convex | Concave | Straight Counter-clockwise | Concave | Convex | Straight