Table of Contents

Class CreateVector2

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that creates a 2D vector element.

public class CreateVector2 : Source<Vector2>
Inheritance
CreateVector2
Inherited Members

Properties

X

Gets or sets the x-component of the vector.

public float X { get; set; }

Property Value

float

Y

Gets or sets the y-component of the vector.

public float Y { get; set; }

Property Value

float

Methods

Generate()

Generates an observable sequence that returns a 2D vector element.

public override IObservable<Vector2> Generate()

Returns

IObservable<Vector2>

A sequence containing the created Vector2 object.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of 2D vectors, where each Vector2 object is emitted only when an observable sequence emits a notification.

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

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting new vectors.

Returns

IObservable<Vector2>

The sequence of created Vector2 values.

Type Parameters

TSource

The type of the elements in the source sequence.