Table of Contents

Class Translate

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that applies a translation along the specified axes to every transform in the sequence.

public class Translate : MatrixTransform
Inheritance
Translate
Inherited Members

Properties

X

Gets or sets the translation along the x-axis.

[Range(-1, 1)]
public float X { get; set; }

Property Value

float

Y

Gets or sets the translation along the y-axis.

[Range(-1, 1)]
public float Y { get; set; }

Property Value

float

Z

Gets or sets the translation along the z-axis.

[Range(-1, 1)]
public float Z { get; set; }

Property Value

float

Methods

CreateTransform(out Matrix4)

Initializes a transform matrix for applying a translation along the specified axes.

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.