Table of Contents

Class CreatePerspectiveOffCenter

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that creates a perspective projection matrix with the specified view frustum.

public class CreatePerspectiveOffCenter : Source<Matrix4>
Inheritance
CreatePerspectiveOffCenter
Inherited Members

Properties

Bottom

Gets or sets the bottom edge of the view frustum.

public float Bottom { get; set; }

Property Value

float

FarClip

Gets or sets the distance to the far clip plane.

public float FarClip { get; set; }

Property Value

float

Left

Gets or sets the left edge of the view frustum.

public float Left { get; set; }

Property Value

float

NearClip

Gets or sets the distance to the near clip plane.

public float NearClip { get; set; }

Property Value

float

Right

Gets or sets the right edge of the view frustum.

public float Right { get; set; }

Property Value

float

Top

Gets or sets the top edge of the view frustum.

public float Top { get; set; }

Property Value

float

Methods

Generate()

Generates an observable sequence that returns a 4x4 perspective projection matrix with the specified parameters.

public override IObservable<Matrix4> Generate()

Returns

IObservable<Matrix4>

A sequence containing the created Matrix4 object.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of perspective matrices with the specified parameters, where each Matrix4 object is emitted only when an observable sequence emits a notification.

public IObservable<Matrix4> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting new matrices.

Returns

IObservable<Matrix4>

The sequence of created Matrix4 values.

Type Parameters

TSource

The type of the elements in the source sequence.