neuray API Programmer's Manual

mi::neuraylib::IType_matrix Class Reference

[MDL type system]

Description

The type of kind matrix. The matrix is represented as a compound of column vectors. The number of matrix columns is given by the size of the underlying compound, see mi::neuraylib::IType_compound::get_size(). The number of matrix rows is given by the dimension of a column vector. Both dimensions are either 2, 3, or 4.

Note:

MDL matrix types are named TypeColxRow where Type is one of float or double, Col is the number of columns and Row is the number of rows (see also section 6.9 in [MDLLS]). This convention is different from the convention used by mi::math::Matrix.

Public Member Functions

virtual const IType_vectorget_element_type() const =0
Returns the type of the matrix elements, i.e., the type of a column vector.

Static Public Variables

static const Kind s_kind = TK_MATRIX
The kind of this subclass.

Member Functions

virtual const IType_vector* mi::​neuraylib::​IType_matrix::get_element_type() const [pure virtual]

Returns the type of the matrix elements, i.e., the type of a column vector.

Variables

const Kind mi::​neuraylib::​IType_matrix::s_kind = TK_MATRIX [static]

The kind of this subclass.