Table of Contents

Class CreateAxisAngleRotation

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that creates a rotation matrix from an axis-angle representation.

public class CreateAxisAngleRotation : Source<Matrix4>
Inheritance
CreateAxisAngleRotation
Inherited Members

Properties

Angle

Gets or sets the angle describing the magnitude of the rotation about the axis.

[Range(-3.141592653589793, 3.141592653589793)]
public float Angle { get; set; }

Property Value

float

Axis

Gets or sets a 3D vector specifying the direction of the axis of rotation.

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

Property Value

Vector3

Methods

Generate()

Generates an observable sequence that contains a single rotation matrix created from the specified axis-angle rotation.

public override IObservable<Matrix4> Generate()

Returns

IObservable<Matrix4>

A sequence containing the created Matrix4 rotation matrix.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of matrices representing the specified axis-angle rotation, and 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.