Table of Contents

Class CreateVector4

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that creates a 4D vector element.

public class CreateVector4 : Source<Vector4>
Inheritance
CreateVector4
Inherited Members

Properties

W

Gets or sets the w-component of the vector.

public float W { get; set; }

Property Value

float

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

Z

Gets or sets the z-component of the vector.

public float Z { get; set; }

Property Value

float

Methods

Generate()

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

public override IObservable<Vector4> Generate()

Returns

IObservable<Vector4>

A sequence containing the created Vector4 object.

Generate<TSource>(IObservable<TSource>)

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

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

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting new vectors.

Returns

IObservable<Vector4>

The sequence of created Vector4 values.

Type Parameters

TSource

The type of the elements in the source sequence.