Matrix4.Scale
Contents
[
Hide
]Scale(Vector3)
Creates a matrix that scales along the x-axis, the y-axis and the z-axis.
public static Matrix4 Scale(Vector3 s)
Parameter | Type | Description |
---|---|---|
s | Vector3 | Scaling factories applies to the x-axis, the y-axis and the z-axis |
Examples
The following code shows how to create a matrix for scale operation.
var t = Matrix4.Scale(new Vector3(10, 10, 10));
var pos = new Vector3(1, 1, 10);
Console.WriteLine($"Transformed: {t * pos}");
See Also
- struct Vector3
- struct Matrix4
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D
Scale(double)
Creates a matrix that scales along the x-axis, the y-axis and the z-axis.
public static Matrix4 Scale(double s)
Parameter | Type | Description |
---|---|---|
s | Double | Scaling factories applies to all axex |
Examples
The following code shows how to create a matrix for scale operation.
var t = Matrix4.Scale(10);
var pos = new Vector3(1, 1, 10);
Console.WriteLine($"Transformed: {t * pos}");
See Also
- struct Matrix4
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D
Scale(double, double, double)
Creates a matrix that scales along the x-axis, the y-axis and the z-axis.
public static Matrix4 Scale(double sx, double sy, double sz)
Parameter | Type | Description |
---|---|---|
sx | Double | Scaling factories applies to the x-axis |
sy | Double | Scaling factories applies to the y-axis |
sz | Double | Scaling factories applies to the z-axis |
Examples
The following code shows how to create a matrix for scale operation.
var t = Matrix4.Scale(10, 20, 10);
var pos = new Vector3(1, 1, 10);
Console.WriteLine($"Transformed: {t * pos}");
See Also
- struct Matrix4
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D