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