Click or drag to resize
Ab4d.SharpEngine logo

Triangulator(Vector2, Boolean) Constructor

Constructor that takes positions that define the outer polygon. To add a hole call AddHole(Vector2) method. To add multiple outer polygons and holes, use constructor that takes an array of list of points.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public Triangulator(
	Vector2[] points,
	bool isYAxisUp
)

Parameters

points  Vector2
list of points that define the polygon that need to be triangulated.
isYAxisUp  Boolean
Optional Boolean that specifies if Y axis is pointing up (true by default). This affects the value of IsClockwise property.
See Also