Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

VectorUtils.TransformSegment

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static Unity.VectorGraphics.BezierSegment TransformSegment(Unity.VectorGraphics.BezierSegment segment, Vector2 translation, float rotation, Vector2 scaling);

Parameters

Parameter Description
segment 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

BezierSegment The transformed curve segment

Description

Transforms a curve segment by a translation, rotation and scaling.


Parameters

Parameter Description
segment The curve segment to transform
matrix The transformation matrix to apply on the curve segment

Returns

BezierSegment The transformed curve segment

Description

Transforms a curve segment by a transformation matrix.