Edit

Share via


Matrix4x4.WithRow(Int32, Vector4) Method

Definition

Creates a new Matrix4x4 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::Matrix4x4 WithRow(int index, System::Numerics::Vector4 value);
public readonly System.Numerics.Matrix4x4 WithRow(int index, System.Numerics.Vector4 value);
member this.WithRow : int * System.Numerics.Vector4 -> System.Numerics.Matrix4x4
Public Function WithRow (index As Integer, value As Vector4) As Matrix4x4

Parameters

index
Int32

The index of the row to replace.

value
Vector4

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

Returns

A Matrix4x4 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 (4).

Applies to