Table of Contents

Class CreateMatrix2

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that creates a 2x2 matrix.

public class CreateMatrix2 : Source<Matrix2>
Inheritance
CreateMatrix2
Inherited Members

Properties

Row0

Gets or sets the top row of the matrix.

[TypeConverter(typeof(NumericRecordConverter))]
public Vector2 Row0 { get; set; }

Property Value

Vector2

Row1

Gets or sets the bottom row of the matrix.

[TypeConverter(typeof(NumericRecordConverter))]
public Vector2 Row1 { get; set; }

Property Value

Vector2

Methods

Generate()

Generates an observable sequence that contains a single 2x2 matrix with the specified rows.

public override IObservable<Matrix2> Generate()

Returns

IObservable<Matrix2>

A sequence containing the created Matrix2 object.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of 2x2 matrices with the specified rows, and where each Matrix2 object is emitted only when an observable sequence emits a notification.

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

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting new matrices.

Returns

IObservable<Matrix2>

The sequence of created Matrix2 values.

Type Parameters

TSource

The type of the elements in the source sequence.