TransformBezierPath
Transforms a path by a transformation matrix.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
TransformBezierPath(BezierPathSegment[], Vector2, float, Vector2)
Transforms a path by a transformation matrix.
public static BezierPathSegment[] TransformBezierPath(BezierPathSegment[] path, Vector2 translation, float rotation, Vector2 scaling)
Parameters
The path to transform
The translation to apply
The rotation to apply, in radians
The scaling to apply
Returns
Type | Description |
|---|---|
| BezierPathSegment[] | The transformed path |
TransformBezierPath(BezierPathSegment[], Matrix2D)
Transforms a path by a transformation matrix.
public static BezierPathSegment[] TransformBezierPath(BezierPathSegment[] path, Matrix2D matrix)
Parameters
The path to transform
The transformation matrix to apply on the curve segment
Returns
Type | Description |
|---|---|
| BezierPathSegment[] | The transformed path |