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
Direction
Gets the normalized viewing direction vector computed by rotating canonical (0, 0, -1) by the camera quaternion.
public Vector3d Direction { get; }Property Value
FarDistance
Far clipping plane distance.
public double FarDistance { get; init; }Property Value
FieldOfView
Vertical field of view in degrees (for perspective projection).
public double FieldOfView { get; init; }Property Value
FocalDistance
Distance from the camera eye to the focal/target point.
public double FocalDistance { get; init; }Property Value
NearDistance
Near clipping plane distance.
public double NearDistance { get; init; }Property Value
Position
Eye position of the camera in 3D world coordinates.
public Vector3d Position { get; init; }Property Value
Projection
Projection mode (perspective or orthographic).
public NwcCameraProjection Projection { get; init; }Property Value
Rotation
Unit rotation quaternion representing the camera orientation.
public Quaterniond Rotation { get; init; }Property Value
Target
Gets the focal target / look-at point in 3D world space (Position + Direction * FocalDistance).
public Vector3d Target { get; }Property Value
Up
Gets the normalized camera up vector computed by rotating canonical (0, 1, 0) by the camera quaternion.
public Vector3d Up { get; }