[]
Creates a matrix that uniformally scales along all three axis.
public static Matrix4x4 Scale(float scale)
Public Shared Function Scale(scale As Single) As Matrix4x4
| Type | Name | Description |
|---|---|---|
| float | scale | The uniform scale that is applied along all axis. |
| Type | Description |
|---|---|
| Matrix4x4 | The created scaling matrix. |
Creates a matrix that scales along the x-axis, y-axis, and y-axis.
public static Matrix4x4 Scale(float xScale, float yScale, float zScale)
Public Shared Function Scale(xScale As Single, yScale As Single, zScale As Single) As Matrix4x4
| Type | Name | Description |
|---|---|---|
| float | xScale | Scaling factor that is applied along the x-axis. |
| float | yScale | Scaling factor that is applied along the y-axis. |
| float | zScale | Scaling factor that is applied along the z-axis. |
| Type | Description |
|---|---|
| Matrix4x4 | The created scaling matrix. |
Creates a matrix that scales along the x-axis, y-axis, and y-axis.
public static Matrix4x4 Scale(Vector3 scale)
Public Shared Function Scale(scale As Vector3) As Matrix4x4
| Type | Name | Description |
|---|---|---|
| Vector3 | scale | Scaling factor for all three axes. |
| Type | Description |
|---|---|
| Matrix4x4 | The created scaling matrix. |