Matrix3x2.CreateScale Method

Definition

Creates a scaling matrix.

Overloads

CreateScale(Single, Single)

Creates a scaling matrix from the specified X and Y components.

CreateScale(Single, Vector2)

Creates a scaling matrix that scales uniformly with the specified scale with an offset from the specified center.

CreateScale(Single, Single, Vector2)

Creates a scaling matrix that is offset by a given center point.

CreateScale(Single)

Creates a scaling matrix that scales uniformly with the given scale.

CreateScale(Vector2)

Creates a scaling matrix from the specified vector scale.

CreateScale(Vector2, Vector2)

Creates a scaling matrix from the specified vector scale with an offset from the specified center point.

CreateScale(Single, Single)

Source:
Matrix3x2.cs
Source:
Matrix3x2.cs
Source:
Matrix3x2.cs

Creates a scaling matrix from the specified X and Y components.

C#
public static System.Numerics.Matrix3x2 CreateScale(float xScale, float yScale);

Parameters

xScale
Single

The value to scale by on the X axis.

yScale
Single

The value to scale by on the Y axis.

Returns

The scaling matrix.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

CreateScale(Single, Vector2)

Source:
Matrix3x2.cs
Source:
Matrix3x2.cs
Source:
Matrix3x2.cs

Creates a scaling matrix that scales uniformly with the specified scale with an offset from the specified center.

C#
public static System.Numerics.Matrix3x2 CreateScale(float scale, System.Numerics.Vector2 centerPoint);

Parameters

scale
Single

The uniform scale to use.

centerPoint
Vector2

The center offset.

Returns

The scaling matrix.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

CreateScale(Single, Single, Vector2)

Source:
Matrix3x2.cs
Source:
Matrix3x2.cs
Source:
Matrix3x2.cs

Creates a scaling matrix that is offset by a given center point.

C#
public static System.Numerics.Matrix3x2 CreateScale(float xScale, float yScale, System.Numerics.Vector2 centerPoint);

Parameters

xScale
Single

The value to scale by on the X axis.

yScale
Single

The value to scale by on the Y axis.

centerPoint
Vector2

The center point.

Returns

The scaling matrix.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

CreateScale(Single)

Source:
Matrix3x2.cs
Source:
Matrix3x2.cs
Source:
Matrix3x2.cs

Creates a scaling matrix that scales uniformly with the given scale.

C#
public static System.Numerics.Matrix3x2 CreateScale(float scale);

Parameters

scale
Single

The uniform scale to use.

Returns

The scaling matrix.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

CreateScale(Vector2)

Source:
Matrix3x2.cs
Source:
Matrix3x2.cs
Source:
Matrix3x2.cs

Creates a scaling matrix from the specified vector scale.

C#
public static System.Numerics.Matrix3x2 CreateScale(System.Numerics.Vector2 scales);

Parameters

scales
Vector2

The scale to use.

Returns

The scaling matrix.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

CreateScale(Vector2, Vector2)

Source:
Matrix3x2.cs
Source:
Matrix3x2.cs
Source:
Matrix3x2.cs

Creates a scaling matrix from the specified vector scale with an offset from the specified center point.

C#
public static System.Numerics.Matrix3x2 CreateScale(System.Numerics.Vector2 scales, System.Numerics.Vector2 centerPoint);

Parameters

scales
Vector2

The scale to use.

centerPoint
Vector2

The center offset.

Returns

The scaling matrix.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0