Camera class
A camera's projection.
A node MAY reference a camera to apply a transform to place the camera in the scene.
Constructors
- Camera.new({required GltfRoot root, required CameraType type, required CameraOrthographic? orthographic, required CameraPerspective? perspective})
-
Camera.parse(GltfRoot root, Map<
String, Object?> map)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- orthographic → CameraOrthographic?
-
An orthographic camera containing properties to create an orthographic
projection matrix.
This property MUST NOT be defined when
perspective
is defined.final - perspective → CameraPerspective?
-
A perspective camera containing properties to create a perspective
projection matrix.
This property MUST NOT be defined when
orthographic
is defined.final - root → GltfRoot
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CameraType
-
Specifies if the camera uses a perspective or orthographic projection.
Based on this, either the camera's
perspective
ororthographic
property MUST be defined.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited