Table of Contents

Class CreateTranslation

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that creates a translation matrix.

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

Properties

X

Gets or sets the translation along the x-axis.

[Range(-1, 1)]
public float X { get; set; }

Property Value

float

Y

Gets or sets the translation along the y-axis.

[Range(-1, 1)]
public float Y { get; set; }

Property Value

float

Z

Gets or sets the translation along the z-axis.

[Range(-1, 1)]
public float Z { get; set; }

Property Value

float

Methods

Generate()

Generates an observable sequence that returns a translation matrix.

public override IObservable<Matrix4> Generate()

Returns

IObservable<Matrix4>

A sequence containing the created Matrix4 object.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of translation matrices, 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.