* Build a transformation matrix from individual vectors. */
| 123 | * Build a transformation matrix from individual vectors. |
| 124 | */ |
| 125 | __forceinline AffineSpace3fa buildMatrix(const float* localX, |
| 126 | const float* localY, |
| 127 | const float* localZ, |
| 128 | const float* position) |
| 129 | { |
| 130 | return AffineSpace3fa::translate(Vec3fa(position[0], position[1], position[2])) |
| 131 | * AffineSpace3fa(LinearSpace3fa(Vec3fa(localX[0], localX[1], localX[2]), |
| 132 | Vec3fa(localY[0], localY[1], localY[2]), |
| 133 | Vec3fa(localZ[0], localZ[1], localZ[2]))); |
| 134 | } |
| 135 | |
| 136 | /* |
| 137 | * Add instances to a scene. |