Matrix3x2.WithElement(Int32, Int32, Single) 方法

定义

使用指定行和列处的元素创建一个新 Matrix3x2 元素,并将其设置为给定值,其余元素设置为与当前矩阵中的相同值。

public:
 System::Numerics::Matrix3x2 WithElement(int row, int column, float value);
public readonly System.Numerics.Matrix3x2 WithElement(int row, int column, float value);
member this.WithElement : int * int * single -> System.Numerics.Matrix3x2
Public Function WithElement (row As Integer, column As Integer, value As Single) As Matrix3x2

参数

row
Int32

包含要替换的元素的行的索引。

column
Int32

包含要替换的元素的列的索引。

value
Single

要分配给索引处元素的值:[rowcolumn]。

返回

索引处元素的值为 [Matrix3x2rowcolumn] 设置为 value ,其余元素设置为与当前矩阵中的值相同的值。

例外

row 小于零或大于或等于行数(3)。

-或-

column 小于零或大于或等于列数(2)。

适用于