Class CreateQuaternionRotation
Represents an operator that creates a rotation matrix from a quaternion representation.
public class CreateQuaternionRotation : Source<Matrix4>
- Inheritance
-
CreateQuaternionRotation
- Inherited Members
Properties
Rotation
Gets or sets the quaternion representing the rotation transform.
[TypeConverter(typeof(NumericRecordConverter))]
public Quaternion Rotation { get; set; }
Property Value
Methods
Generate()
Generates an observable sequence that returns a rotation matrix corresponding to the specified quaternion.
public override IObservable<Matrix4> Generate()
Returns
- IObservable<Matrix4>
A sequence containing the created Matrix4 object.
Generate<TSource>(IObservable<TSource>)
Generates an observable sequence of rotation matrices from the specified quaternion, where each Matrix4 object is emitted only when an observable sequence emits a notification.
public IObservable<Matrix4> Generate<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence containing the notifications used for emitting new matrices.
Returns
- IObservable<Matrix4>
The sequence of created Matrix4 values.
Type Parameters
TSource
The type of the elements in the
source
sequence.