Shape constructor
Shape([
- List<
Vector2> ? points
points
-- (optional) array of Vector2
.
Creates a Shape from the points. The first point defines the offset, then
successive points are added to the curves array as
LineCurves
.
If no points are specified, an empty shape is created and the currentPoint is set to the origin.
Implementation
Shape([super.points]){
uuid = MathUtils.generateUUID();
holes = [];
}