Matrix4x4.WithRow(Int32, Vector4) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新 Matrix4x4 Java,將指定索引的列設定為給定值,剩餘列則設定為與當前矩陣相同的值。
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
參數
- index
- Int32
要替換的那一列索引。
- value
- Vector4
要指派給索引列的值為 [index]。
傳回
Matrix4x4 A 的索引列值設為 [index]value,其餘列則設為與當前矩陣相同的值。
例外狀況
index 小於零或大於等於行數(4)。