目录

Matrix3

Class Info

public class Matrix3 implements Parcelable

三维矩阵。

Public Field Summary

Qualifier and Type

Field and Description

static final Matrix3

IDENTITY

三维单位矩阵。

static final Matrix3

ZERO

0矩阵。

Public Constructor Summary

Constructor Name

Matrix3()

构造方法,默认构造为三维单位矩阵。

Matrix3(float[] array)

构造方法,使用数组初始化Matrix3。

Matrix3(Matrix3 matrix)

构造方法,使用其他三维矩阵初始化Matrix3。

Public Method Summary

Qualifier and Type

Method Name and Description

float

at(int row, int col)

获取矩阵中指定坐标的元素值。

float[]

getValue()

获取保存三维矩阵数值的数组。

Matrix3

inverse()

获取当前矩阵的逆矩阵。

static Matrix3

multiply(Matrix3 lth, Matrix3 rth)

计算三维矩阵乘法。

Public Fields

[h2]IDENTITY

Property

public static final Matrix3 IDENTITY

三维单位矩阵。

[h2]ZERO

Property

public static final Matrix3 ZERO

0矩阵。

Public Constructors

[h2]Matrix3

Constructor

public Matrix3()

默认构造,初始化为三维单位矩阵。

[h2]Matrix3(float[] array)

Constructor

public Matrix3(float[] array)

使用数组初始化。

Parameters

Name

Description

array

保存矩阵值的数组。

[h2]Matrix3(Matrix3 matrix)

Constructor

public Matrix3(Matrix3 matrix)

构造方法,使用其他三维矩阵初始化Matrix3。

Parameters

Name

Description

matrix

三维矩阵。

Public Methods

[h2]at

Method

public float at(int row, int col)

获取矩阵中指定坐标的元素值。

Parameters

Name

Description

row

行坐标。

col

列坐标。

Returns

Type

Description

float

指定坐标的元素值。

[h2]getValue

Method

public float[] getValue()

获取存放三维矩阵数值的数组。

Returns

Type

Description

float[]

存放三维矩阵数值的数组。

[h2]inverse

Method

public Matrix3 inverse()

获取当前矩阵的逆矩阵。

Returns

Type

Description

Matrix3

当前矩阵的逆矩阵。

[h2]multiply

Method

public static Matrix3 multiply(Matrix3 lth, Matrix3 rth)

计算三维矩阵乘法。

Parameters

Name

Description

lth

三维矩阵。

rth

三维矩阵。

Returns

Type

Description

Matrix3

矩阵乘积。