| 414 | } |
| 415 | |
| 416 | inline __device__ __host__ void normalizeRows() |
| 417 | { |
| 418 | //#pragma unroll 3 |
| 419 | for(unsigned int i = 0; i<3; i++) |
| 420 | { |
| 421 | float3 r = getRow(i); |
| 422 | r/=length(r); |
| 423 | setRow(i, r); |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | //! computes the product of two matrices (result stored in this) |
| 428 | inline __device__ __host__ void mult(const float3x3 &other) { |