Matrix3x2.WithElement(Int32, Int32, Single) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定行和列处的元素创建一个新 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
要分配给索引处元素的值:[row, column]。
返回
索引处元素的值为 [Matrix3x2row, column] 设置为 value ,其余元素设置为与当前矩阵中的值相同的值。