Table of Contents

Class CreateMatrix4

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that creates a 4x4 matrix containing 3D rotation, scale, position and projection.

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

Properties

Row0

Gets or sets the top row of the matrix.

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

Property Value

Vector4

Row1

Gets or sets the second row of the matrix.

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

Property Value

Vector4

Row2

Gets or sets the third row of the matrix.

[TypeConverter(typeof(NumericRecordConverter))]
public Vector4 Row2 { get; set; }

Property Value

Vector4

Row3

Gets or sets the bottom row of the matrix.

[TypeConverter(typeof(NumericRecordConverter))]
public Vector4 Row3 { get; set; }

Property Value

Vector4

Methods

Generate()

Generates an observable sequence that contains a single 4x4 matrix with the specified rows.

public override IObservable<Matrix4> Generate()

Returns

IObservable<Matrix4>

A sequence containing the created Matrix4 object.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of 4x4 matrices with the specified rows, and 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.