Crate half_matrix

source ·
Expand description

Half matrix storage, Row major

 ABCD
A-
B--
C---
D----

In memory representation:

-|--|---|----

Indexing starts at 0.

ABCD
0123

Row Major means that the first parameter of the methods is the Y axis in the matrix, and the second is the X axis.

As shown by the matrix, the row value is required to be bigger or equal to the column value.

Example

Parameters: (3, 0) = (D, A)

 ABCD
A-
B--
C---
DX---

Structs

A matrix where only half of it is stored. See the lib documentation for more details.