XMFLOAT4X4::operator()(size_t,size_t) function (directxmath.h)
Returns a reference
to a matrix element of an instance XMFLOAT4X4
as specified by row and column
arguments.
Note This operator is only available under C++.
Syntax
float & operator()(
size_t Row,
size_t Column
) noexcept;
Parameters
Row
Row containing the matrix element of interest. Row specification is 0 based.
Column
Column containing the matrix element of interest. Column specification is 0 based.
Return value
A reference
to the matrix element specified by the operator's Row and Column arguments.
Remarks
As a reference
to the matrix element is returned, this operator can be used to update the value of an element
of an instance of XMFLOAT4X4
.
The following example:
XMFLOAT4X4 mat; float& a= mat(2,3); a=42.0; |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | directxmath.h |
See also
Reference