Click or drag to resize
Ab4d.SharpEngine logo

Triangulator(IListVector2, Boolean) Constructor

Constructor with multiple polygons (polygons are automatically classified as holes and outer polygons). The holes are identified by the orientation of positions (clockwise or anti-clockwise) that is different from the orientation of positions in the outer polygons.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public Triangulator(
	IList<Vector2[]> polygons,
	bool isYAxisUp = true
)

Parameters

polygons  IListVector2
array of polygon; each defined by a list of positions
isYAxisUp  Boolean  (Optional)
Optional Boolean that specifies if Y axis is pointing up (true by default). This affects the value of IsClockwise property.
See Also