Click or drag to resize
Ab4d.SharpEngine logo

GraphTriangulator Class

Provides methods that triangulate a graph area between graph values and a horizontal baseline.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.UtilitiesGraphTriangulator

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntax
C#
public class GraphTriangulator

The GraphTriangulator type exposes the following members.

Constructors
 NameDescription
Public methodGraphTriangulatorInitializes a new instance of the GraphTriangulator class
Top
Methods
 NameDescription
Public methodStatic memberTriangulate(ReadOnlySpan, Void) 
Public methodStatic memberTriangulate(Vector2, Single) 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).
Public methodStatic memberTriangulate(ReadOnlySpan, Void, Single, Single) 
Public methodStatic memberTriangulate(Single, Single, Single, Single) Triangulate method creates triangles under the graph defined by graphValues.
Top
Remarks
Each pair of adjacent graph points creates a quad between the graph line and the baseline. The quad is represented by two triangles.
See Also