Matrix4x4.this [int row, int column] 操作索引

var this[row : int, column : int] : float

Description描述

Access element at [row, column].

访问在[row, column]处的元素。

Both row and column must be from 0 to 3 inclusive. A matrix is 4x4 array of numbers, and you can access the individual elements using this function.

row和column必须在0到3之间,矩阵是一个4x4的数字数组,你可以通过使用这个函数访问单个的元素。

Note the standard math notation - row is the first index.

注意标准数学符号,row是第一个索引。

ovar this[index : int] : float

Description描述

Access element at sequential index (0..15 inclusive).

按顺序索引访问元素(包含0..15)。

A matrix is 4x4 array of numbers (16 numbers in total). You can access the individual elements using "flattened" index with this. The index is row+column*4.

矩阵是一个4x4的数字数组(总16个数)。你可以使用一维索引来访问单个元素。这个索引是row+column*4

Page last updated: 2011-2-25