Class MatrixExtensions


  • public final class MatrixExtensions
    extends Object
    Xtext extensions for matrices.
    Since:
    13.0
    Version:
    17.0 2020-01-04 14:41:43
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    mathgeom
    • Method Detail

      • operator_plus

        @Pure
        public static <M extends Matrix2d> M operator_plus​(double left,
                                                           M right)
        Replies the addition of the given scalar to this matrix: left + right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right + left is supported by Matrix2d.operator_plus(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the sum of the matrix and the scalar.
        See Also:
        Matrix2d.add(double), Matrix2d.operator_plus(double)
      • operator_plus

        @Pure
        public static <M extends Matrix3d> M operator_plus​(double left,
                                                           M right)
        Replies the addition of the given scalar to this matrix: left + right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right + left is supported by Matrix3d.operator_plus(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the sum of the matrix and the scalar.
        See Also:
        Matrix3d.add(double), Matrix3d.operator_plus(double)
      • operator_plus

        @Pure
        public static <M extends Matrix4d> M operator_plus​(double left,
                                                           M right)
        Replies the addition of the given scalar to this matrix: left + right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right + left is supported by Matrix4d.operator_plus(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the sum of the matrix and the scalar.
        See Also:
        Matrix4d.add(double), Matrix4d.operator_plus(double)
      • operator_minus

        @Pure
        public static <M extends Matrix2d> M operator_minus​(double left,
                                                            M right)
        Replies the substraction of the given scalar to this matrix: left - right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right - left is supported by Matrix2d.operator_minus(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the sum of the matrix and the scalar.
        See Also:
        Matrix2d.add(double), Matrix2d.operator_minus(double)
      • operator_minus

        @Pure
        public static <M extends Matrix3d> M operator_minus​(double left,
                                                            M right)
        Replies the substraction of the given scalar to this matrix: left - right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right - left is supported by Matrix3d.operator_minus(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the sum of the matrix and the scalar.
        See Also:
        Matrix3d.add(double), Matrix3d.operator_minus(double)
      • operator_minus

        @Pure
        public static <M extends Matrix4d> M operator_minus​(double left,
                                                            M right)
        Replies the substraction of the given scalar to this matrix: left - right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right - left is supported by Matrix4d.operator_minus(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the sum of the matrix and the scalar.
        See Also:
        Matrix4d.add(double), Matrix4d.operator_minus(double)
      • operator_multiply

        @Pure
        public static <M extends Matrix2d> M operator_multiply​(double left,
                                                               M right)
        Replies the multiplication of the given scalar and this matrix: left * right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right * left is supported by Matrix2d.operator_multiply(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the multiplication of the scalar and the matrix.
        See Also:
        Matrix2d.mul(double), Matrix2d.operator_multiply(double)
      • operator_multiply

        @Pure
        public static <M extends Matrix3d> M operator_multiply​(double left,
                                                               M right)
        Replies the multiplication of the given scalar and this matrix: left * right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right * left is supported by Matrix3d.operator_multiply(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the multiplication of the scalar and the matrix.
        See Also:
        Matrix3d.mul(double), Matrix3d.operator_multiply(double)
      • operator_multiply

        @Pure
        public static <M extends Matrix4d> M operator_multiply​(double left,
                                                               M right)
        Replies the multiplication of the given scalar and this matrix: left * right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right * left is supported by Matrix4d.operator_multiply(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the multiplication of the scalar and the matrix.
        See Also:
        Matrix4d.mul(double), Matrix4d.operator_multiply(double)
      • operator_divide

        @Pure
        public static <M extends Matrix2d> M operator_divide​(double left,
                                                             M right)
        Replies the division of this matrix by the given scalar: left / right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right / left is supported by Matrix2d.operator_divide(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the division of the matrix by the scalar.
        See Also:
        Matrix2d.mul(double), Matrix2d.operator_divide(double)
      • operator_divide

        @Pure
        public static <M extends Matrix3d> M operator_divide​(double left,
                                                             M right)
        Replies the division of this matrix by the given scalar: left / right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right / left is supported by Matrix3d.operator_divide(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the division of the matrix by the scalar.
        See Also:
        Matrix3d.mul(double), Matrix3d.operator_divide(double)
      • operator_divide

        @Pure
        public static <M extends Matrix4d> M operator_divide​(double left,
                                                             M right)
        Replies the division of this matrix by the given scalar: left / right.

        This function is an implementation of the operator for the languages that defined or based on the Xtext framework.

        The operation right / left is supported by Matrix4d.operator_divide(double).

        Type Parameters:
        M - the type of the matrix.
        Parameters:
        left - the scalar.
        right - the matrix.
        Returns:
        the division of the matrix by the scalar.
        See Also:
        Matrix4d.mul(double), Matrix4d.operator_divide(double)