CVBpy 14.0
Matrix3D Class Reference

Double precision 3x3 matrix class. More...

Inherits object.

Public Member Functions

float at (self, int row, int column)
 Index based element access. More...
 
cvb.Matrix3DH create ()
 Construct a 3x3 matrix. More...
 
cvb.Matrix3D identity ()
 The identity element. More...
 
None invert (self)
 Inverts this matrix if possible. More...
 

Properties

 det = property
 float: Matrix determinant.
 
 roll_pitch_yaw = property
 Tuple[float, float, float]: Roll, pitch and yaw values.
 

Detailed Description

Double precision 3x3 matrix class.

Supports the same arguments as cvb.Matrix3D.create.

Parameters

*args : Any Parameters like cvb.Matrix3D.create.

**kwargs : Any Parameters like cvb.Matrix3D.create.

Member Function Documentation

◆ at()

float at (   self,
int  row,
int  column 
)

Index based element access.

Parameters

row : int The row to access.

column : int The column to access.

Returns

float The matrix element.

◆ create()

cvb.Matrix3DH create ( )

Construct a 3x3 matrix.

Returns

cvb.Matrix3DH A 3D 3x3 matrix.

Construct a 3x3 matrix.

Parameters

roll : float Angle around x in degrees.

pitch : float Angle around y axis in degrees.

yaw : float Angle around z axis in degrees.

Returns

cvb.Matrix3DH A 3D 3x3 matrix.

Construct a 3x3 matrix.

Parameters

values : List[float] Containing exactly 9 elements.

Returns

cvb.Matrix3DH A 3D 3x3 matrix.

◆ identity()

cvb.Matrix3D identity ( )

The identity element.

Returns

cvb.Matrix3D An identity matrix.

◆ invert()

None invert (   self)

Inverts this matrix if possible.

Might cause division by zero.