Table of Contents

Class CreateTransform

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that creates a model matrix specifying position, rotation and scale.

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

Constructors

CreateTransform()

Initializes a new instance of the CreateTransform class.

Properties

Position

Gets or sets the position of the model, in the local coordinate frame.

Rotation

Gets or sets the quaternion representing the rotation of the model, in the local coordinate frame.

Scale

Gets or sets the scale vector applied to the model, in the local coordinate frame.

Methods

Generate()

Generates an observable sequence that returns a model matrix specifying position, rotation and scale.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of model matrices specifying position, rotation and scale, and where each Matrix4 object is emitted only when an observable sequence emits a notification.