Läs på engelska Redigera

Dela via


Matrix4x4.CreateScale Method

Definition

Creates a scaling matrix.

Overloads

CreateScale(Vector3)

Creates a scaling matrix from the specified vector scale.

CreateScale(Single)

Creates a uniform scaling matrix that scale equally on each axis.

CreateScale(Vector3, Vector3)

Creates a scaling matrix with a center point.

CreateScale(Single, Vector3)

Creates a uniform scaling matrix that scales equally on each axis with a center point.

CreateScale(Single, Single, Single)

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

CreateScale(Single, Single, Single, Vector3)

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

CreateScale(Vector3)

Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs

Creates a scaling matrix from the specified vector scale.

C#
public static System.Numerics.Matrix4x4 CreateScale(System.Numerics.Vector3 scales);

Parameters

scales
Vector3

The scale to use.

Returns

The scaling matrix.

Applies to

CreateScale(Single)

Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs

Creates a uniform scaling matrix that scale equally on each axis.

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

Parameters

scale
Single

The uniform scaling factor.

Returns

The scaling matrix.

Applies to

CreateScale(Vector3, Vector3)

Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs

Creates a scaling matrix with a center point.

C#
public static System.Numerics.Matrix4x4 CreateScale(System.Numerics.Vector3 scales, System.Numerics.Vector3 centerPoint);

Parameters

scales
Vector3

The vector that contains the amount to scale on each axis.

centerPoint
Vector3

The center point.

Returns

The scaling matrix.

Applies to

CreateScale(Single, Vector3)

Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs

Creates a uniform scaling matrix that scales equally on each axis with a center point.

C#
public static System.Numerics.Matrix4x4 CreateScale(float scale, System.Numerics.Vector3 centerPoint);

Parameters

scale
Single

The uniform scaling factor.

centerPoint
Vector3

The center point.

Returns

The scaling matrix.

Applies to

CreateScale(Single, Single, Single)

Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs

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

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

Parameters

xScale
Single

The value to scale by on the X axis.

yScale
Single

The value to scale by on the Y axis.

zScale
Single

The value to scale by on the Z axis.

Returns

The scaling matrix.

Applies to

CreateScale(Single, Single, Single, Vector3)

Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs

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

C#
public static System.Numerics.Matrix4x4 CreateScale(float xScale, float yScale, float zScale, System.Numerics.Vector3 centerPoint);

Parameters

xScale
Single

The value to scale by on the X axis.

yScale
Single

The value to scale by on the Y axis.

zScale
Single

The value to scale by on the Z axis.

centerPoint
Vector3

The center point.

Returns

The scaling matrix.

Applies to