TransformBuilder.Scale

Scale(double)

Chain a scaling transform matrix with a component scaled by s

public TransformBuilder Scale(double s)
ParameterTypeDescription
sDouble

Examples

TransformBuilder tb = new TransformBuilder();
tb.Scale(10);
Console.WriteLine($"Transform Matrix: {tb.Matrix}");

See Also


Scale(double, double, double)

Chain a scaling transform matrix

public TransformBuilder Scale(double x, double y, double z)
ParameterTypeDescription
xDouble
yDouble
zDouble

Examples

TransformBuilder tb = new TransformBuilder();
tb.Scale(10, 10, 10);
Console.WriteLine($"Transform Matrix: {tb.Matrix}");

See Also


Scale(Vector3)

Chain a scale transform

public TransformBuilder Scale(Vector3 s)
ParameterTypeDescription
sVector3

Examples

TransformBuilder tb = new TransformBuilder();
tb.Scale(new Vector3(10, 10, 10));
Console.WriteLine($"Transform Matrix: {tb.Matrix}");

See Also