Modifier

Partager via


CGAffineTransform.Translate Method

Definition

Overloads

Translate(nfloat, nfloat, MatrixOrder)
Translate(nfloat, nfloat)

Translates the affine transform by modifying every X value by the supplied X parameter and every Y value by the supplied Y parameter.

Translate(CGAffineTransform, nfloat, nfloat)

Translates the affine transform by modifying every X value by the supplied X parameter and every Y value by the supplied Y parameter.

Translate(nfloat, nfloat, MatrixOrder)

public void Translate (nfloat tx, nfloat ty, CoreGraphics.MatrixOrder order);
member this.Translate : nfloat * nfloat * CoreGraphics.MatrixOrder -> unit

Parameters

tx
nfloat
ty
nfloat
order
MatrixOrder

Applies to

Translate(nfloat, nfloat)

Translates the affine transform by modifying every X value by the supplied X parameter and every Y value by the supplied Y parameter.

[Foundation.Advice("By default, the new operation is applied after the old operation: t' = t * [ 1 0 0 1 tx ty ].\nTo have the same behavior as the native Swift API, pass 'MatrixOrder.Prepend' to 'Translate (nfloat, nfloat, MatrixOrder)'.")]
public void Translate (nfloat tx, nfloat ty);
public void Translate (nfloat tx, nfloat ty);
member this.Translate : nfloat * nfloat -> unit

Parameters

tx
nfloat

X value to move the transform by.

ty
nfloat

Y value to move the transform by.

Attributes

Remarks

Modifies the affine in place.

This method is not equivalent to the native CoreGraphics' CGAffineTransformTranslate method (in which case use M:CoreGraphics.CGAffineTransform.Translate(CoreGraphics.CGAffineTransform,System.Single,System.Single) instead).

Applies to

Translate(CGAffineTransform, nfloat, nfloat)

Translates the affine transform by modifying every X value by the supplied X parameter and every Y value by the supplied Y parameter.

public static CoreGraphics.CGAffineTransform Translate (CoreGraphics.CGAffineTransform transform, nfloat tx, nfloat ty);
static member Translate : CoreGraphics.CGAffineTransform * nfloat * nfloat -> CoreGraphics.CGAffineTransform

Parameters

transform
CGAffineTransform

The affine to translate.

tx
nfloat

X value to move the transform by.

ty
nfloat

Y value to move the transform by.

Returns

The translated affine transform.

Remarks

This method is equivalent to the native CoreGraphics' CGAffineTransformTranslate method.

Applies to