Matrix4x4.CreateScale Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a scaling matrix.
Overloads
CreateScale(Single, Single, Single, Vector3) |
Creates a scaling matrix that is offset by a given center point. |
CreateScale(Single, Single, Single) |
Creates a scaling matrix from the specified X, Y, and Z components. |
CreateScale(Single, Vector3) |
Creates a uniform scaling matrix that scales equally on each axis with a center point. |
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, Single, Single, Vector3)
- Source:
- Matrix4x4.cs
- Source:
- Matrix4x4.cs
- Source:
- Matrix4x4.cs
Creates a scaling matrix that is offset by a given center point.
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
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
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.
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
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, 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.
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
Parameters
- scale
- Single
The uniform scaling factor.
- centerPoint
- Vector3
The center point.
Returns
The scaling matrix.
Applies to
CreateScale(Vector3)
- Source:
- Matrix4x4.cs
- Source:
- Matrix4x4.cs
- Source:
- Matrix4x4.cs
Creates a scaling matrix from the specified vector scale.
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
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.
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
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.
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
Parameters
- scales
- Vector3
The vector that contains the amount to scale on each axis.
- centerPoint
- Vector3
The center point.
Returns
The scaling matrix.