PerspectiveProjection class final

Inheritance

Constructors

PerspectiveProjection({double fovYRadians = math.pi / 4, double near = 0.1, double far = 1000.0})
const

Properties

far → double
final
fovYRadians → double
Vertical field of view. Vertical rather than horizontal so that widening the viewport reveals more scene instead of squashing it.
final
hashCode → int
The hash code for this object.
no setterinherited
near → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
verticalFieldOfView → double?
The vertical angle this projection sees, in radians, or null for one that has no such angle.
no setteroverride

Methods

copyWith({double? fovYRadians, double? near, double? far}) → PerspectiveProjection
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
projectToNdc(Vector3 eyePosition, {double aspect = 1.0}) → Vector3
Projects an eye-space point to NDC.
inherited
toMatrix(double aspect) → Matrix4
Builds the projection matrix for a given viewport aspect ratio.
override
toString() → String
A string representation of this object.
inherited

Operators

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