Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TransformSegment

Transforms a curve segment by a translation, rotation and scaling.
Read time 1 minuteLast updated 6 days ago

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