JitteredProjection class final
base moved a fraction of a pixel across the screen — R1.
The same crop of NDC space TiledProjection makes, with a scale of one:
a translation added after the projection, so every projection, off-axis
and orthographic included, is jittered by the same amount on screen. The
offset is in NDC units, where a pixel of a frame width wide is
2 / width; JitteredProjection.frame does that conversion.
- Inheritance
-
- Object
- Projection
- JitteredProjection
Constructors
- JitteredProjection(Projection base, {required double dx, required double dy})
-
baseshifted on screen bydxanddy, in NDC units.const - JitteredProjection.frame(Projection base, {required int frame, required int length, required int width, required int height})
-
Frame
frame's offset from a Halton(2, 3) sequence oflength, for a targetwidth×heightpixels.factory
Properties
- base → Projection
-
The projection being jittered.
final
- dx → double
-
The offset in NDC units.
final
- dy → double
-
The vertical offset in NDC units, where the frame is two high.
final
- far → double
-
base's far clip distance, in metres.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- near → double
-
base's near clip distance, in metres.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verticalFieldOfView → double?
-
base's vertical field of view, in radians.
no setteroverride
Methods
-
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(
ProjectionRequest request) → Matrix4 -
Builds the projection matrix for the target
requestdescribes: its aspect ratio and, where the caller knows them, its size in pixels.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited