Matrix4x4.CreateScale 方法

定义

创建缩放矩阵。

重载

CreateScale(Single, Single, Single, Vector3)

创建按给定中心点偏移的缩放矩阵。

CreateScale(Single, Single, Single)

从指定 X、Y 和 Z 分量创建缩放矩阵。

CreateScale(Single, Vector3)

创建具有中心点并且在每个轴上均匀缩放的统一缩放矩阵。

CreateScale(Vector3)

从指定向量比例创建缩放矩阵。

CreateScale(Single)

创建在每个轴上均匀缩放的统一缩放矩阵。

CreateScale(Vector3, Vector3)

创建具有中心点的缩放矩阵。

CreateScale(Single, Single, Single, Vector3)

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

创建按给定中心点偏移的缩放矩阵。

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

参数

xScale
Single

作为 X 轴上的缩放量的值。

yScale
Single

作为 Y 轴上的缩放量的值。

zScale
Single

作为 Z 轴上的缩放量的值。

centerPoint
Vector3

中心点。

返回

缩放矩阵。

适用于

CreateScale(Single, Single, Single)

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

从指定 X、Y 和 Z 分量创建缩放矩阵。

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

参数

xScale
Single

作为 X 轴上的缩放量的值。

yScale
Single

作为 Y 轴上的缩放量的值。

zScale
Single

作为 Z 轴上的缩放量的值。

返回

缩放矩阵。

适用于

CreateScale(Single, Vector3)

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

创建具有中心点并且在每个轴上均匀缩放的统一缩放矩阵。

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

参数

scale
Single

统一缩放因子。

centerPoint
Vector3

中心点。

返回

缩放矩阵。

适用于

CreateScale(Vector3)

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

从指定向量比例创建缩放矩阵。

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

参数

scales
Vector3

要使用的比例。

返回

缩放矩阵。

适用于

CreateScale(Single)

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

创建在每个轴上均匀缩放的统一缩放矩阵。

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

参数

scale
Single

统一缩放因子。

返回

缩放矩阵。

适用于

CreateScale(Vector3, Vector3)

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

创建具有中心点的缩放矩阵。

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

参数

scales
Vector3

包含每个轴上要缩放的量的向量。

centerPoint
Vector3

中心点。

返回

缩放矩阵。

适用于