Table of Contents

Class TransformRelative

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that applies a model matrix transform specifying relative position, rotation and scale to every transform in the sequence.

public class TransformRelative : MatrixTransform
Inheritance
TransformRelative
Inherited Members

Constructors

TransformRelative()

Initializes a new instance of the TransformRelative class.

public TransformRelative()

Properties

Position

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

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

Property Value

Vector3

Rotation

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

[TypeConverter(typeof(NumericRecordConverter))]
public Quaternion Rotation { get; set; }

Property Value

Quaternion

Scale

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

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

Property Value

Vector3

Methods

CreateTransform(out Matrix4)

Initializes a transform matrix for applying a model matrix transform specifying relative position, rotation and scale.

protected override void CreateTransform(out Matrix4 result)

Parameters

result Matrix4

When this method returns, contains the relative matrix transform to be combined with each element in the sequence.