기술 자료

Unity Engine

Unity Engine

TransformBezierPath

Transforms a path by a transformation matrix.
읽는 시간 1분최근 업데이트: 한 달 전

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