Method TransformBezierPath
TransformBezierPath(BezierPathSegment[], Vector2, float, Vector2)
Transforms a path by a transformation matrix.
Declaration
public static BezierPathSegment[] TransformBezierPath(BezierPathSegment[] path, Vector2 translation, float rotation, Vector2 scaling)
Parameters
Type | Name | Description |
---|---|---|
BezierPathSegment[] | path | The path to transform |
Vector2 | translation | The translation to apply |
float | rotation | The rotation to apply, in radians |
Vector2 | scaling | The scaling to apply |
Returns
Type | Description |
---|---|
BezierPathSegment[] | The transformed path |
TransformBezierPath(BezierPathSegment[], Matrix2D)
Transforms a path by a transformation matrix.
Declaration
public static BezierPathSegment[] TransformBezierPath(BezierPathSegment[] path, Matrix2D matrix)
Parameters
Type | Name | Description |
---|---|---|
BezierPathSegment[] | path | The path to transform |
Matrix2D | matrix | The transformation matrix to apply on the curve segment |
Returns
Type | Description |
---|---|
BezierPathSegment[] | The transformed path |