Scale
Returns a float2x2 matrix representing a uniform scaling of both axes by s.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
Scale(float)
Returns a float2x2 matrix representing a uniform scaling of both axes by s.
public static float2x2 Scale(float s)
Parameters
The scaling factor.
Returns
Type | Description |
|---|---|
| float2x2 | The float2x2 matrix representing uniform scale by s. |
Scale(float, float)
Returns a float2x2 matrix representing a non-uniform axis scaling by x and y.
public static float2x2 Scale(float x, float y)
Parameters
Returns
Type | Description |
|---|---|
| float2x2 | The float2x2 matrix representing a non-uniform scale. |
Scale(float2)
Returns a float2x2 matrix representing a non-uniform axis scaling by the components of the float2 vector v.
public static float2x2 Scale(float2 v)
Parameters
The float2 containing the x and y axis scaling factors.
Returns
Type | Description |
|---|---|
| float2x2 | The float2x2 matrix representing a non-uniform scale. |