init(position:leadingControlPoint:topControlPoint:trailingControlPoint:bottomControlPoint:)
Creates a new vertex.
Declaration
init(position: SIMD2<Float>, leadingControlPoint: SIMD2<Float>, topControlPoint: SIMD2<Float>, trailingControlPoint: SIMD2<Float>, bottomControlPoint: SIMD2<Float>)Parameters
- position:
The position of the vertex in the coordinate space the gradient is interpreted in.
- leadingControlPoint:
The Bezier control point of the vertex’s leading edge.
- topControlPoint:
The Bezier control point of the vertex’s top edge.
- trailingControlPoint:
The Bezier control point of the vertex’s trailing edge.
- bottomControlPoint:
The Bezier control point of the vertex’s bottom edge.