Method: Matrix#trans4
- Defined in:
- lib/openc3/core_ext/matrix.rb
#trans4(x, y, z) ⇒ Object
128 129 130 131 132 133 134 |
# File 'lib/openc3/core_ext/matrix.rb', line 128 def trans4(x, y, z) @rows[3][0] += x * @rows[0][0] + y * @rows[1][0] + z * @rows[2][0] @rows[3][1] += x * @rows[0][1] + y * @rows[1][1] + z * @rows[2][1] @rows[3][2] += x * @rows[0][2] + y * @rows[1][2] + z * @rows[2][2] @rows[3][3] += x * @rows[0][3] + y * @rows[1][3] + z * @rows[2][3] return self end |