Class Tuple2DExtensions


  • public final class Tuple2DExtensions
    extends Object
    Xtext extensions for 2D vectors.
    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_multiply

        @Pure
        public static <V extends Vector1D<V,​?,​?>> V operator_multiply​(double left,
                                                                                  V right)
        Scale this vector: 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:
        V - the type of the vector.
        Parameters:
        left - the scaling factor.
        right - the vector.
        Returns:
        the scaled vector.
        Since:
        14.0
        See Also:
        Tuple2D.scale(double), Vector2D.operator_multiply(double)
      • operator_divide

        @Pure
        public static <V extends Vector2D<V,​?>> V operator_divide​(double left,
                                                                        V right)
        Scale this vector: 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:
        V - the type of the vector.
        Parameters:
        left - the scaling factor.
        right - the vector.
        Returns:
        the scaled vector.
        See Also:
        Vector2D.operator_divide(double)
      • operator_divide

        @Pure
        public static <V extends Vector1D<V,​?,​?>> V operator_divide​(double left,
                                                                                V right)
        Scale this vector: 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:
        V - the type of the vector.
        Parameters:
        left - the scaling factor.
        right - the vector.
        Returns:
        the scaled vector.
        See Also:
        Vector2D.operator_divide(double)
      • operator_minus

        @Pure
        public static <V extends Vector2D<V,​?>> V operator_minus​(double left,
                                                                       V right)
        Subtract a vector to this 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 Vector2D.operator_minus(double).

        Type Parameters:
        V - the type of the vector.
        Parameters:
        left - the scaling factor.
        right - the vector.
        Returns:
        the result.
        See Also:
        Vector2D.sub(Vector2D), Vector2D.operator_minus(double)
      • operator_minus

        @Pure
        public static <V extends Vector1D<V,​?,​?>> V operator_minus​(double left,
                                                                               V right)
        Subtract a vector to this 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 Vector2D.operator_minus(double).

        Type Parameters:
        V - the type of the vector.
        Parameters:
        left - the scaling factor.
        right - the vector.
        Returns:
        the result.
        Since:
        14.0
        See Also:
        Vector2D.sub(Vector2D), Vector2D.operator_minus(double)