Table of Contents

Class ExtractRotation

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that returns the rotation component of every matrix in the sequence.

public class ExtractRotation : Transform<Matrix4, Quaternion>
Inheritance
ExtractRotation
Inherited Members

Properties

RowNormalize

Gets or sets a value indicating whether to row-normalize the input matrix. Keep this unless you know the input is already normalized.

public bool RowNormalize { get; set; }

Property Value

bool

Methods

Process(IObservable<Matrix4>)

Returns the rotation component of every 4x4 matrix in an observable sequence.

public override IObservable<Quaternion> Process(IObservable<Matrix4> source)

Parameters

source IObservable<Matrix4>

The sequence of 4x4 matrices for which to extract the rotation component.

Returns

IObservable<Quaternion>

A Quaternion object representing the rotation component of each 4x4 matrix in the sequence.