Method Scale
Scale(float)
Returns a float2x2 matrix representing a uniform scaling of both axes by s.
Declaration
public static float2x2 Scale(float s)
Parameters
| Type | Name | Description | 
|---|---|---|
| float | s | 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.
Declaration
public static float2x2 Scale(float x, float y)
Parameters
| Type | Name | Description | 
|---|---|---|
| float | x | The x-axis scaling factor.  | 
    
| float | y | The y-axis scaling factor.  | 
    
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.
Declaration
public static float2x2 Scale(float2 v)
Parameters
| Type | Name | Description | 
|---|---|---|
| float2 | v | The float2 containing the x and y axis scaling factors.  | 
    
Returns
| Type | Description | 
|---|---|
| float2x2 | The float2x2 matrix representing a non-uniform scale.  |