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