KudanCV
KudanMatrix4 Class Reference

#include <KudanCV.h>

Public Member Functions

 KudanMatrix4 ()
 
float & operator() (int row, int col)
 
std::string toString ()
 

Public Attributes

float data [16]
 Raw data, stored vectorised in column major order.
 

Detailed Description

Represents a 4x4 matrix. Data are stored as an array of floating point type in column major order. 0 4 8 12 1 5 9 13 2 6 10 14 3 7 11 15

Constructor & Destructor Documentation

◆ KudanMatrix4()

KudanMatrix4::KudanMatrix4 ( )

Default constructor, sets all elements to 0

Member Function Documentation

◆ operator()()

float & KudanMatrix4::operator() ( int  row,
int  col 
)

Access operator for the elements. This abstracts away details of the storage. It can be used to get and set values because it returns a reference

Parameters
row,colThe coordinates of the data element to retrieve
Returns
A reference to the respective element

◆ toString()

std::string KudanMatrix4::toString ( )

Returns a representation of this as a string (four lines with line breaks)

Returns
A string representation of this matrix

The documentation for this class was generated from the following files: