Matrix3x2.CreateScale 方法

定义

创建缩放矩阵。Creates a scaling matrix.

重载

CreateScale(Single, Single)

从指定 X 和 Y 分量创建缩放矩阵。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)

从指定 X 和 Y 分量创建缩放矩阵。Creates a scaling matrix from the specified X and Y components.

public:
 static System::Numerics::Matrix3x2 CreateScale(float xScale, float yScale);
public static System.Numerics.Matrix3x2 CreateScale (float xScale, float yScale);
static member CreateScale : single * single -> System.Numerics.Matrix3x2
Public Shared Function CreateScale (xScale As Single, yScale As Single) As Matrix3x2

参数

xScale
Single

作为 X 轴上的缩放量的值。The value to scale by on the X axis.

yScale
Single

作为 Y 轴上的缩放量的值。The value to scale by on the Y axis.

返回

Matrix3x2

缩放矩阵。The scaling matrix.

适用于

CreateScale(Single, Vector2)

使用相对于指定中心的偏移量,创建通过指定比例统一缩放的缩放矩阵。Creates a scaling matrix that scales uniformly with the specified scale with an offset from the specified center.

public:
 static System::Numerics::Matrix3x2 CreateScale(float scale, System::Numerics::Vector2 centerPoint);
public static System.Numerics.Matrix3x2 CreateScale (float scale, System.Numerics.Vector2 centerPoint);
static member CreateScale : single * System.Numerics.Vector2 -> System.Numerics.Matrix3x2
Public Shared Function CreateScale (scale As Single, centerPoint As Vector2) As Matrix3x2

参数

scale
Single

要使用的统一比例。The uniform scale to use.

centerPoint
Vector2

中心偏移量。The center offset.

返回

Matrix3x2

缩放矩阵。The scaling matrix.

适用于

CreateScale(Single, Single, Vector2)

创建按给定中心点偏移的缩放矩阵。Creates a scaling matrix that is offset by a given center point.

public:
 static System::Numerics::Matrix3x2 CreateScale(float xScale, float yScale, System::Numerics::Vector2 centerPoint);
public static System.Numerics.Matrix3x2 CreateScale (float xScale, float yScale, System.Numerics.Vector2 centerPoint);
static member CreateScale : single * single * System.Numerics.Vector2 -> System.Numerics.Matrix3x2
Public Shared Function CreateScale (xScale As Single, yScale As Single, centerPoint As Vector2) As Matrix3x2

参数

xScale
Single

作为 X 轴上的缩放量的值。The value to scale by on the X axis.

yScale
Single

作为 Y 轴上的缩放量的值。The value to scale by on the Y axis.

centerPoint
Vector2

中心点。The center point.

返回

Matrix3x2

缩放矩阵。The scaling matrix.

适用于

CreateScale(Single)

创建使用给定比例统一缩放的缩放矩阵。Creates a scaling matrix that scales uniformly with the given scale.

public:
 static System::Numerics::Matrix3x2 CreateScale(float scale);
public static System.Numerics.Matrix3x2 CreateScale (float scale);
static member CreateScale : single -> System.Numerics.Matrix3x2
Public Shared Function CreateScale (scale As Single) As Matrix3x2

参数

scale
Single

要使用的统一比例。The uniform scale to use.

返回

Matrix3x2

缩放矩阵。The scaling matrix.

适用于

CreateScale(Vector2)

从指定向量比例创建缩放矩阵。Creates a scaling matrix from the specified vector scale.

public:
 static System::Numerics::Matrix3x2 CreateScale(System::Numerics::Vector2 scales);
public static System.Numerics.Matrix3x2 CreateScale (System.Numerics.Vector2 scales);
static member CreateScale : System.Numerics.Vector2 -> System.Numerics.Matrix3x2
Public Shared Function CreateScale (scales As Vector2) As Matrix3x2

参数

scales
Vector2

要使用的比例。The scale to use.

返回

Matrix3x2

缩放矩阵。The scaling matrix.

适用于

CreateScale(Vector2, Vector2)

使用相对于指定中心点的偏移量从指定向量比例创建缩放矩阵。Creates a scaling matrix from the specified vector scale with an offset from the specified center point.

public:
 static System::Numerics::Matrix3x2 CreateScale(System::Numerics::Vector2 scales, System::Numerics::Vector2 centerPoint);
public static System.Numerics.Matrix3x2 CreateScale (System.Numerics.Vector2 scales, System.Numerics.Vector2 centerPoint);
static member CreateScale : System.Numerics.Vector2 * System.Numerics.Vector2 -> System.Numerics.Matrix3x2
Public Shared Function CreateScale (scales As Vector2, centerPoint As Vector2) As Matrix3x2

参数

scales
Vector2

要使用的比例。The scale to use.

centerPoint
Vector2

中心偏移量。The center offset.

返回

Matrix3x2

缩放矩阵。The scaling matrix.

适用于