GaussianCamera class

Represents a camera for Gaussian Splatting rendering.

Contains both intrinsic parameters (focal lengths, image dimensions) and extrinsic parameters (position, rotation) needed for proper 3D scene rendering.

Annotations

Constructors

GaussianCamera.new({required int id, required int width, required int height, required Vector3 position, required Matrix3 rotation, required double fx, required double fy})
Creates a new GaussianCamera with the specified parameters.
const
GaussianCamera.createDefault({required double width, required double height, double horizontalFovDegrees = 45.0, Vector3? position, Matrix3? rotation, int id = 0})
Creates a default camera with reasonable FOV-based parameters.
factory

Properties

fx double
Focal length in pixels along the x-axis.
final
fy double
Focal length in pixels along the y-axis.
final
hashCode int
The hash code for this object.
no setteroverride
height int
Image height in pixels.
final
horizontalFovDegrees double
Gets the current horizontal field of view in degrees.
no setter
id int
Unique identifier for this camera.
final
position → Vector3
3D position of the camera in world coordinates.
final
rotation → Matrix3
3x3 rotation matrix representing camera orientation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verticalFovDegrees double
Gets the current vertical field of view in degrees.
no setter
width int
Image width in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
withUpdatedPosAndRot({required Vector3 position, required Matrix3 rotation}) GaussianCamera
Creates a new camera with updated pos and rot.
withUpdatedViewport({required double newWidth, required double newHeight}) GaussianCamera
Creates a new camera with updated dimensions while preserving FOV.

Operators

operator ==(Object other) bool
The equality operator.
override