withUpdatedPosAndRot method

GaussianCamera withUpdatedPosAndRot({
  1. required Vector3 position,
  2. required Matrix3 rotation,
})

Creates a new camera with updated pos and rot.

Parameters:

  • position: New image width in pixels
  • rotation: New image height in pixels

Implementation

GaussianCamera withUpdatedPosAndRot({
  required Vector3 position,
  required Matrix3 rotation,
}) {
  return GaussianCamera(
    id: id,
    width: width,
    height: height,
    position: position,
    rotation: rotation,
    fx: fx,
    fy: fy,
  );
}