README.md (728B)
1 # Half Matrix 2 A Half Matrix implementation. Like a normal matrix, but you only store half of it. Also it only contains bools. 3 4 ### Half Matrix: Storage 5 The matrix is row major. 6 Here's how it looks like: 7 8 ``` 9 ABCD 10 A- 11 B-- 12 C--- 13 D---- 14 ``` 15 16 In memory representation: 17 ``` 18 -|--|---|---- 19 ``` 20 21 22 Indexing starts at 0. 23 ``` 24 ABCD 25 0123 26 ``` 27 28 Row Major means that the first parameter of the methods is the Y axis in the matrix, and the second is the X axis. 29 30 As shown by the matrix, the row value is required to be bigger or equal to the column value. 31 32 ### Example 33 Parameters: (3, 0) = (D, A) 34 ``` 35 ABCD 36 A- 37 B-- 38 C--- 39 DX--- 40 ``` 41 42 ### Contributing 43 44 If you see a missing method or a bug, open a pull request and I'll be more than happy to merge it!