TransformBuilder.Translate

Translate(double, double, double)

Chain a translation transform

public TransformBuilder Translate(double tx, double ty, double tz)
ParameterTypeDescription
txDouble
tyDouble
tzDouble

Examples

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

See Also


Translate(Vector3)

Chain a translation transform

public TransformBuilder Translate(Vector3 v)
ParameterTypeDescription
vVector3

Examples

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

See Also