Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TransformBezierPath

Transforms a path by a transformation matrix.
Read time 1 minuteLast updated 8 days ago

Definition

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

translation

The translation to apply

rotation

The rotation to apply, in radians

scaling

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

matrix

The transformation matrix to apply on the curve segment

Returns

Type

Description

BezierPathSegment[]The transformed path