Edit

Share via


Matrix3x2.WithRow(Int32, Vector2) Method

Definition

Creates a new Matrix3x2 with the row at the specified index set to the given value and the remaining rows set to the same value as that in the current matrix.

public:
 System::Numerics::Matrix3x2 WithRow(int index, System::Numerics::Vector2 value);
public readonly System.Numerics.Matrix3x2 WithRow(int index, System.Numerics.Vector2 value);
member this.WithRow : int * System.Numerics.Vector2 -> System.Numerics.Matrix3x2
Public Function WithRow (index As Integer, value As Vector2) As Matrix3x2

Parameters

index
Int32

The index of the row to replace.

value
Vector2

The value to assign to the row at index: [index].

Returns

A Matrix3x2 with the value of the row at index: [index] set to value and the remaining rows set to the same value as that in the current matrix.

Exceptions

index was less than zero or greater than or equal to the number of rows (3).

Applies to