Table of Contents

Class ExtrinsicsTransform

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that converts extrinsics rotation and translation vectors in the sequence into a transform matrix, and vice-versa.

public class ExtrinsicsTransform : Transform<Tuple<Point3d, Point3d>, Matrix4>
Inheritance
ExtrinsicsTransform
Inherited Members

Properties

Scale

Gets or sets a 3D vector specifying the optional scale factor for rotation and translation vectors.

[TypeConverter(typeof(NumericRecordConverter))]
public Vector3? Scale { get; set; }

Property Value

Vector3?

ScaleSpecified

Gets a value indicating whether the Scale property should be serialized.

[Browsable(false)]
public bool ScaleSpecified { get; }

Property Value

bool

Methods

Process(IObservable<Matrix4>)

Converts each transform matrix in an observable sequence into a pair of extrinsics rotation and translation vectors.

public IObservable<Tuple<Point3d, Point3d>> Process(IObservable<Matrix4> source)

Parameters

source IObservable<Matrix4>

A sequence of Matrix4 objects representing the transform matrix to convert into a pair of extrinsics rotation and translation vectors.

Returns

IObservable<Tuple<Point3d, Point3d>>

A sequence of pairs of extrinsics rotation and translation vectors corresponding to each transform matrix in the sequence.

Process(IObservable<Tuple<Point3d, Point3d>>)

Converts each pair of extrinsics rotation and translation vectors in an observable sequence into a transform matrix.

public override IObservable<Matrix4> Process(IObservable<Tuple<Point3d, Point3d>> source)

Parameters

source IObservable<Tuple<Point3d, Point3d>>

A sequence of pairs containing the extrinsics rotation and translation vectors to convert into a transform matrix.

Returns

IObservable<Matrix4>

A sequence of Matrix4 objects corresponding to each pair of extrinsics rotation and translation vectors in the sequence.