Table of Contents

Class Scale

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

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

public class Scale : MatrixTransform
Inheritance
Scale
Inherited Members

Properties

X

Gets or sets the scale factor for the x-axis.

[Range(0, 2)]
public float X { get; set; }

Property Value

float

Y

Gets or sets the scale factor for the y-axis.

[Range(0, 2)]
public float Y { get; set; }

Property Value

float

Z

Gets or sets the scale factor for the z-axis.

[Range(0, 2)]
public float Z { get; set; }

Property Value

float

Methods

CreateTransform(out Matrix4)

Initializes a transform matrix for applying a scale factor 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.