기술 자료

Unity Engine

Unity Engine

Rotate(float)

Computes a float2x2 matrix representing a counter-clockwise rotation by an angle in radians.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static float2x2 Rotate(float angle)

Parameters

angle

Rotation angle in radians.

Returns

Type

Description

float2x2Returns the 2x2 rotation matrix.

Remarks

A positive rotation angle will produce a counter-clockwise rotation and a negative rotation angle will produce a clockwise rotation.