OpenCV for Unity 3.0.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/5.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d Struct Reference

4×4 matrix (row-major layout: mRC is row R, column C). More...

Public Member Functions

readonly void CopyTo (Span< double > destination)
 Copies this matrix to a row-major span of 16 doubles.
 

Static Public Member Functions

static Mat4d FromSpan (ReadOnlySpan< double > values)
 Creates a Mat4d from a row-major span of 16 doubles.
 
static Mat4d Multiply (in Mat4d a, in Mat4d b)
 Multiplies two matrices (row-major): result = a * b.
 

Public Attributes

double M00
 
double M01
 
double M02
 
double M03
 
double M10
 
double M11
 
double M12
 
double M13
 
double M20
 
double M21
 
double M22
 
double M23
 
double M30
 
double M31
 
double M32
 
double M33
 

Properties

static Mat4d Identity [get]
 Gets the identity matrix.
 
double this[int row, int col] [get, set]
 Gets or sets the element at the specified row and column.
 

Detailed Description

4×4 matrix (row-major layout: mRC is row R, column C).

Member Function Documentation

◆ CopyTo()

readonly void OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.CopyTo ( Span< double > destination)

Copies this matrix to a row-major span of 16 doubles.

Parameters
destinationDestination span (length must be 16).
Exceptions
ArgumentExceptionThrown when destination .Length is not 16.

◆ FromSpan()

static Mat4d OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.FromSpan ( ReadOnlySpan< double > values)
static

Creates a Mat4d from a row-major span of 16 doubles.

Parameters
valuesRow-major matrix elements (length must be 16).
Returns
The constructed matrix.
Exceptions
ArgumentExceptionThrown when values .Length is not 16.

◆ Multiply()

static Mat4d OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.Multiply ( in Mat4d a,
in Mat4d b )
static

Multiplies two matrices (row-major): result = a * b.

Parameters
aLeft-hand matrix.
bRight-hand matrix.
Returns
The product a * b.

Member Data Documentation

◆ M00

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M00

◆ M01

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M01

◆ M02

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M02

◆ M03

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M03

◆ M10

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M10

◆ M11

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M11

◆ M12

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M12

◆ M13

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M13

◆ M20

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M20

◆ M21

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M21

◆ M22

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M22

◆ M23

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M23

◆ M30

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M30

◆ M31

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M31

◆ M32

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M32

◆ M33

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.M33

Property Documentation

◆ Identity

Mat4d OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.Identity
staticget

Gets the identity matrix.

Returns
4×4 identity matrix.

◆ this[int row, int col]

double OpenCVForUnity.Extensions.OpenCVARUtils.Mat4d.this[int row, int col]
getset

Gets or sets the element at the specified row and column.

Parameters
rowRow index (0..3).
colColumn index (0..3).
Returns
The element at [row , col ].
Exceptions
ArgumentOutOfRangeExceptionThrown when row or col is outside 0..3.

The documentation for this struct was generated from the following file: