CameraProjection class abstract Scene graph

A lens projection that maps view-space coordinates into clip space.

The projection is the half of a camera that does not depend on where the camera is or what it looks at, only on the lens (field of view, clip planes) and the render target's aspect ratio. Pair one with a view (a Camera's Camera.getViewMatrix) to form a full view-projection transform. PerspectiveProjection is the built-in option; applications can implement CameraProjection for orthographic or other projections.

Implementers

Constructors

CameraProjection()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getProjectionMatrix(double aspectRatio) → Matrix4
Returns the projection matrix for a render target of the given aspectRatio (width / height).
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