- #1

- 2

- 0

## Main Question or Discussion Point

Hi,

I am always willing to learn, but currently I don't have the time to learn how matrices work, even though it might be simple, I haven't tried.

I need three calculations for a project I am working on, I have one already.

What I basically need is x units to the right, back and left of an element

'matrix' used below contains four subtables, matrix[1] is a table that has the three values matrix[1][1], matrix[1][2] matrix[1][3] matrix[1][4] for example (multi-dimensional array containing a 4x4 matrix)

this is the matrix calculation I have already, it gets the point 5 units ahead of an element.

I want to know how to get 5 units to the back, left and right of this element

I am always willing to learn, but currently I don't have the time to learn how matrices work, even though it might be simple, I haven't tried.

I need three calculations for a project I am working on, I have one already.

What I basically need is x units to the right, back and left of an element

'matrix' used below contains four subtables, matrix[1] is a table that has the three values matrix[1][1], matrix[1][2] matrix[1][3] matrix[1][4] for example (multi-dimensional array containing a 4x4 matrix)

this is the matrix calculation I have already, it gets the point 5 units ahead of an element.

Code:

```
offset1 = 0 * matrix[1][1] + 5 * matrix[2][1] + 0 * matrix[3][1] + matrix[4][1]
offset2 = 0 * matrix[1][2] + 5 * matrix[2][2] + 0 * matrix[3][2] + matrix[4][2]
offset3 = 0 * matrix[1][3] + 5 * matrix[2][3] + 0 * matrix[3][3] + matrix[4][3]
```