ドキュメント

Unity Engine

Unity Engine

TransformSegment

Transforms a curve segment by a translation, rotation and scaling.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

translation

The translation to apply on the curve segment

rotation

The rotation to apply on the curve segment

scaling

The scaling to apply on the curve segment

Returns

Type

Description

BezierSegmentThe 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

matrix

The transformation matrix to apply on the curve segment

Returns

Type

Description

BezierSegmentThe transformed curve segment