Path Tracer
Public Member Functions | List of all members
DoubleMatrix33 Class Reference

A three-dimensional square matrix using doubles. More...

#include <DoubleMatrix33.h>

Public Member Functions

 DoubleMatrix33 (double val=0)
 Default constructor. Gives all points the same value. More...
 
 DoubleMatrix33 (const DoubleVec3D &column0, const DoubleVec3D &column1, const DoubleVec3D &column2)
 Main constructor. More...
 
 DoubleMatrix33 (const DoubleMatrix33 &matrix)
 Copy constructor. More...
 
DoubleVec3D getColumn0 () const
 Getter for the first column. More...
 
DoubleVec3D getColumn1 () const
 Getter for the second column. More...
 
DoubleVec3D getColumn2 () const
 Getter for the third column. More...
 
DoubleVec3D getRow0T () const
 Getter for the first row (transposed). More...
 
DoubleVec3D getRow1T () const
 Getter for the second row (transposed). More...
 
DoubleVec3D getRow2T () const
 Getter for the third row (transposed). More...
 
void setColumn0 (const DoubleVec3D &column0)
 Setter for the first column. More...
 
void setColumn1 (const DoubleVec3D &column1)
 Setter for the second column. More...
 
void setColumn2 (const DoubleVec3D &column2)
 Setter for the third column. More...
 
void operator+= (const DoubleMatrix33 &matrix)
 Sum operator. More...
 
void operator-= (const DoubleMatrix33 &matrix)
 Difference operator. More...
 
void operator*= (const DoubleMatrix33 &matrix)
 Multiplication by a matrix operator. More...
 
void operator*= (double val)
 Multiplication by a scalar operator. More...
 

Detailed Description

A three-dimensional square matrix using doubles.

Constructor & Destructor Documentation

◆ DoubleMatrix33() [1/3]

DoubleMatrix33::DoubleMatrix33 ( double  val = 0)

Default constructor. Gives all points the same value.

Parameters
valThe value of all the points.
See also
DoubleMatrix33::DoubleMatrix33(const DoubleVec3D& column0, const DoubleVec3D& column1, const DoubleVec3D& column2)

◆ DoubleMatrix33() [2/3]

DoubleMatrix33::DoubleMatrix33 ( const DoubleVec3D column0,
const DoubleVec3D column1,
const DoubleVec3D column2 
)

Main constructor.

Parameters
column0The value of the first column.
column1The value of the second column.
column2The value of the third column.
See also
DoubleMatrix33::DoubleMatrix33(double val)

◆ DoubleMatrix33() [3/3]

DoubleMatrix33::DoubleMatrix33 ( const DoubleMatrix33 matrix)

Copy constructor.

Parameters
matrixThe matrix that will be copied.

Member Function Documentation

◆ getColumn0()

DoubleVec3D DoubleMatrix33::getColumn0 ( ) const

Getter for the first column.

Returns
The first column of this matrix.
See also
DoubleMatrix33::setColumn0(), DoubleMatrix33::getColumn1(), DoubleMatrix33::getColumn2()

◆ getColumn1()

DoubleVec3D DoubleMatrix33::getColumn1 ( ) const

Getter for the second column.

Returns
The second column of this matrix.
See also
DoubleMatrix33::setColumn1(), DoubleMatrix33::getColumn0(), DoubleMatrix33::getColumn2()

◆ getColumn2()

DoubleVec3D DoubleMatrix33::getColumn2 ( ) const

Getter for the third column.

Returns
The third column of this matrix.
See also
DoubleMatrix33::setColumn2(), DoubleMatrix33::getColumn0(), DoubleMatrix33::getColumn1()

◆ getRow0T()

DoubleVec3D DoubleMatrix33::getRow0T ( ) const

Getter for the first row (transposed).

Returns
The first row transposed.
See also
DoubleMatrix33::getRow1T(), DoubleMatrix33::getRow2T()

◆ getRow1T()

DoubleVec3D DoubleMatrix33::getRow1T ( ) const

Getter for the second row (transposed).

Returns
The second row transposed.
See also
DoubleMatrix33::getRow0T(), DoubleMatrix33::getRow2T()

◆ getRow2T()

DoubleVec3D DoubleMatrix33::getRow2T ( ) const

Getter for the third row (transposed).

Returns
The third row transposed.
See also
DoubleMatrix33::getRow0T(), DoubleMatrix33::getRow1T()

◆ operator*=() [1/2]

void DoubleMatrix33::operator*= ( const DoubleMatrix33 matrix)

Multiplication by a matrix operator.

Parameters
matrixThe second matrix that will be used for the multiplication.
See also
DoubleMatrix33::operator*=(double val)

◆ operator*=() [2/2]

void DoubleMatrix33::operator*= ( double  val)

◆ operator+=()

void DoubleMatrix33::operator+= ( const DoubleMatrix33 matrix)

Sum operator.

Parameters
matrixThe second matrix that will be used for the sum.
See also
operator+(const DoubleMatrix33& matrix1, const DoubleMatrix33& matrix2)

◆ operator-=()

void DoubleMatrix33::operator-= ( const DoubleMatrix33 matrix)

Difference operator.

Uses the sum and unary minus operators.

Parameters
matrixThe second matrix that will be used for the difference.
See also
DoubleMatrix33::operator+=(const DoubleMatrix33& matrix), operator-(const DoubleMatrix33& matrix)

◆ setColumn0()

void DoubleMatrix33::setColumn0 ( const DoubleVec3D column0)

Setter for the first column.

Parameters
column0The first column.
See also
DoubleMatrix33::getColumn0(), DoubleMatrix33::setColumn1(), DoubleMatrix33::setColumn2()

◆ setColumn1()

void DoubleMatrix33::setColumn1 ( const DoubleVec3D column1)

Setter for the second column.

Parameters
column1The second column.
See also
DoubleMatrix33::getColumn1(), DoubleMatrix33::setColumn0(), DoubleMatrix33::setColumn2()

◆ setColumn2()

void DoubleMatrix33::setColumn2 ( const DoubleVec3D column2)

Setter for the third column.

Parameters
column2The third column.
See also
DoubleMatrix33::getColumn2(), DoubleMatrix33::setColumn0(), DoubleMatrix33::setColumn1()

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