Table of Contents

Class CreatePoint2f

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that creates a 2D point with single-precision floating-point coordinates.

public class CreatePoint2f : Source<Point2f>
Inheritance
CreatePoint2f
Inherited Members

Properties

X

Gets or sets the x-coordinate of the point.

public float X { get; set; }

Property Value

float

Y

Gets or sets the y-coordinate of the point.

public float Y { get; set; }

Property Value

float

Methods

Generate()

Generates an observable sequence that contains a single 2D point with single-precision floating-point coordinates.

public override IObservable<Point2f> Generate()

Returns

IObservable<Point2f>

A sequence containing the created Point2f.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of 2D points using the specified single-precision floating-point coordinates, and where each Point2f object is emitted only when an observable sequence emits a notification.

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

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting new 2D points.

Returns

IObservable<Point2f>

The sequence of created Point2f objects.

Type Parameters

TSource

The type of the elements in the source sequence.