Udostępnij za pośrednictwem


Matrix3f.Translate(Single, Single) Method

Definition

Modifies the current matrix by post-multiplying it with a translation matrix of given dimensions

[Android.Runtime.Register("translate", "(FF)V", "GetTranslate_FFHandler")]
public virtual void Translate (float x, float y);
[<Android.Runtime.Register("translate", "(FF)V", "GetTranslate_FFHandler")>]
abstract member Translate : single * single -> unit
override this.Translate : single * single -> unit

Parameters

x
Single

translation component x

y
Single

translation component y

Attributes

Remarks

Modifies the current matrix by post-multiplying it with a translation matrix of given dimensions

Java documentation for android.renderscript.Matrix3f.translate(float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to