語言

Matrix4x4.CreateScale 方法

定義

建立一個縮放矩陣。

多載

名稱 Description
CreateScale(Vector3)

從指定的向量尺度建立縮放矩陣。

CreateScale(Single)

建立一個均勻的縮放矩陣,且在每個軸上大小相等。

CreateScale(Vector3, Vector3)

建立一個帶有中心點的縮放矩陣。

CreateScale(Single, Vector3)

建立一個均勻的縮放矩陣,並在每個軸上均等縮放,並設有中心點。

CreateScale(Single, Single, Single)

從指定的 X、Y 和 Z 分量建立縮放矩陣。

CreateScale(Single, Single, Single, Vector3)

建立一個縮放矩陣,並以給定中心點為準。

CreateScale(Vector3)

來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
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)

來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
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)

來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
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

中心點。

傳回

縮放矩陣。

適用於

CreateScale(Single, Vector3)

來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
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(Single, Single, Single)

來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
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, Single, Single, Vector3)

來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
Matrix4x4.cs
來源:
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

中心點。

傳回

縮放矩陣。

適用於