Matrix4x4.CreateScale Matrix4x4.CreateScale Matrix4x4.CreateScale Matrix4x4.CreateScale Method

Definition

Creates a scaling matrix.

Overloads

CreateScale(Vector3) CreateScale(Vector3) CreateScale(Vector3) CreateScale(Vector3)

Creates a scaling matrix from the specified vector scale.

CreateScale(Single) CreateScale(Single) CreateScale(Single) CreateScale(Single)

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

CreateScale(Vector3, Vector3) CreateScale(Vector3, Vector3) CreateScale(Vector3, Vector3) CreateScale(Vector3, Vector3)

Creates a scaling matrix with a center point.

CreateScale(Single, Vector3) CreateScale(Single, Vector3) CreateScale(Single, Vector3) CreateScale(Single, Vector3)

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

CreateScale(Single, Single, Single) CreateScale(Single, Single, Single) CreateScale(Single, Single, Single) CreateScale(Single, Single, Single)

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

CreateScale(Single, Single, Single, Vector3) CreateScale(Single, Single, Single, Vector3) CreateScale(Single, Single, Single, Vector3) CreateScale(Single, Single, Single, Vector3)

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

CreateScale(Vector3) CreateScale(Vector3) CreateScale(Vector3) CreateScale(Vector3)

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 Vector3 Vector3 Vector3

The scale to use.

Returns

The scaling matrix.

CreateScale(Single) CreateScale(Single) CreateScale(Single) CreateScale(Single)

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 Single Single Single

The uniform scaling factor.

Returns

The scaling matrix.

CreateScale(Vector3, Vector3) CreateScale(Vector3, Vector3) CreateScale(Vector3, Vector3) CreateScale(Vector3, Vector3)

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 Vector3 Vector3 Vector3

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

centerPoint
Vector3 Vector3 Vector3 Vector3

The center point.

Returns

The scaling matrix.

CreateScale(Single, Vector3) CreateScale(Single, Vector3) CreateScale(Single, Vector3) CreateScale(Single, Vector3)

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 Single Single Single

The uniform scaling factor.

centerPoint
Vector3 Vector3 Vector3 Vector3

The center point.

Returns

The scaling matrix.

CreateScale(Single, Single, Single) CreateScale(Single, Single, Single) CreateScale(Single, Single, Single) CreateScale(Single, Single, Single)

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 Single Single Single

The value to scale by on the X axis.

yScale
Single Single Single Single

The value to scale by on the Y axis.

zScale
Single Single Single Single

The value to scale by on the Z axis.

Returns

The scaling matrix.

CreateScale(Single, Single, Single, Vector3) CreateScale(Single, Single, Single, Vector3) CreateScale(Single, Single, Single, Vector3) CreateScale(Single, Single, Single, Vector3)

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 Single Single Single

The value to scale by on the X axis.

yScale
Single Single Single Single

The value to scale by on the Y axis.

zScale
Single Single Single Single

The value to scale by on the Z axis.

centerPoint
Vector3 Vector3 Vector3 Vector3

The center point.

Returns

The scaling matrix.

Applies to