Edit

Share via


MatrixExtensions.Round(Matrix, Int32) Method

Definition

Rounds the non-offset elements of a matrix to avoid issues due to floating point imprecision and returns the result.

public static Windows.UI.Xaml.Media.Matrix Round (this Windows.UI.Xaml.Media.Matrix matrix, int decimalsAfterRound);
static member Round : Windows.UI.Xaml.Media.Matrix * int -> Windows.UI.Xaml.Media.Matrix
<Extension()>
Public Function Round (matrix As Matrix, decimalsAfterRound As Integer) As Matrix

Parameters

matrix
Matrix

The matrix to round.

decimalsAfterRound
Int32

The number of decimals after the round.

Returns

The rounded matrix.

Applies to