기술 자료

Unity Engine

Unity Engine

Scale

Returns a float4x4 scale matrix given 3 axis scales.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

Scale(float)

Returns a float4x4 scale matrix given 3 axis scales.
public static float4x4 Scale(float s)

Parameters

The uniform scaling factor.

Returns

Type

Description

float4x4The float4x4 matrix that represents a uniform scale.

Scale(float, float, float)

Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales.
public static float4x4 Scale(float x, float y, float z)

Parameters

The x-axis scaling factor.

The y-axis scaling factor.

The z-axis scaling factor.

Returns

Type

Description

float4x4The float4x4 matrix that represents a non-uniform scale.

Scale(float3)

Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales.
public static float4x4 Scale(float3 scales)

Parameters

scales

The vector containing scale factors for each axis.

Returns

Type

Description

float4x4The float4x4 matrix that represents a non-uniform scale.