Table of Contents

Class NwcCamera

Namespace
NwcIO.Model
Assembly
NwcIO.dll

Represents a 3D camera with double-precision position, orientation quaternion, computed viewing direction and up vectors, focal distance, and field of view.

public sealed record NwcCamera : IEquatable<NwcCamera>

Inheritance

Implements

Inherited Members

Properties

AspectRatio

Aspect ratio (width / height) of the camera viewport.

public double AspectRatio { get; init; }

Property Value

double

Direction

Gets the normalized viewing direction vector computed by rotating canonical (0, 0, -1) by the camera quaternion.

public Vector3d Direction { get; }

Property Value

Vector3d

FarDistance

Far clipping plane distance.

public double FarDistance { get; init; }

Property Value

double

FieldOfView

Vertical field of view in degrees (for perspective projection).

public double FieldOfView { get; init; }

Property Value

double

FocalDistance

Distance from the camera eye to the focal/target point.

public double FocalDistance { get; init; }

Property Value

double

NearDistance

Near clipping plane distance.

public double NearDistance { get; init; }

Property Value

double

Position

Eye position of the camera in 3D world coordinates.

public Vector3d Position { get; init; }

Property Value

Vector3d

Projection

Projection mode (perspective or orthographic).

public NwcCameraProjection Projection { get; init; }

Property Value

NwcCameraProjection

Rotation

Unit rotation quaternion representing the camera orientation.

public Quaterniond Rotation { get; init; }

Property Value

Quaterniond

Target

Gets the focal target / look-at point in 3D world space (Position + Direction * FocalDistance).

public Vector3d Target { get; }

Property Value

Vector3d

Up

Gets the normalized camera up vector computed by rotating canonical (0, 1, 0) by the camera quaternion.

public Vector3d Up { get; }

Property Value

Vector3d