DVSceneCameraData class final

A camera's projection, and optionally the orbit it is controlled by.

Constructors

DVSceneCameraData.orbit({DVVec3 target = DVVec3.zero, required double distance, double yawDegrees = 0, double pitchDegrees = 0, bool controls = false, double fovYDegrees = 45, double near = 0.1, double far = 1000})
A camera orbiting target at distance; with controls a viewport lets the user drag and pinch it. It starts turned yawDegrees about the up axis and raised pitchDegrees above the horizon (0 and 0 look down -Z from +Z, level).
const
DVSceneCameraData.perspective({double fovYDegrees = 45, double near = 0.1, double far = 1000})
const

Properties

controls → bool
final
far → double
final
fovYDegrees → double
final
hashCode → int
The hash code for this object.
no setterinherited
isOrbit → bool
no setter
near → double
final
orbitDistance → double?
final
orbitPitchDegrees → double
final
orbitTarget → DVVec3?
final
orbitYawDegrees → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Object? json, String path) → DVSceneCameraData