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

定义

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

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

参数

row
Int32

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

column
Int32

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

value
Single

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

返回

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

例外

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

-或-

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

适用于