invViewRotation3x3 method

List<double> invViewRotation3x3()

Returns the 3×3 inverse view rotation (camera → world), column-major.

Handy for skydome lookups.

Implementation

List<double> invViewRotation3x3() {
  final R = rotation; // already camera -> world
  return <double>[
    R.row0.x,
    R.row1.x,
    R.row2.x,
    R.row0.y,
    R.row1.y,
    R.row2.y,
    R.row0.z,
    R.row1.z,
    R.row2.z,
  ];
}