XMFLOAT4X3::operator()(size_t,size_t) function (directxmath.h)

Returns a reference to a matrix element of an instance XMFLOAT4X3 as specified by row and column arguments.

This operator returns a reference to a matrix element of an instance XMFLOAT4X3 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 XMFLOAT4X3.

The following example:

     XMFLOAT4X3 mat;
     float& a= mat(3,2);
     a=42.0;
    
will set the value of the mat.m[3,2] (or equivalently mat._43) to 42.0.

Requirements

Requirement Value
Target Platform Windows
Header directxmath.h

See also

Reference

XMFLOAT4X3

XMFLOAT4X3 Operators