 |
GraphTriangulatorTriangulate(Vector2, Single) Method |
Triangulate method triangulates the specified graph polygon points and returns
triangle positions and triangle indices.
The graphPoints should be defined by increasing X value (each position should have greater X value).
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic static (Vector2[] , int[] ) Triangulate(
Vector2[] graphPoints,
float yBaseline = 0f
)
Parameters
- graphPoints Vector2
- Array of graph positions
- yBaseline Single (Optional)
- Defines the Y position of the graph baseline (default value is 0)
Return Value
ValueTupleVector2,
Int32Tuple with triangle positions and triangle indices
See Also