Interface UnmodifiablePoint2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>

    • Method Detail

      • add

        default void add​(Point2D<?,​?> point,
                         Vector2D<?,​?> vector)
        Description copied from interface: Point2D
        Sets the value of this tuple to the sum of tuples t1 and t2.
        Specified by:
        add in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        point - the first tuple
        vector - the second tuple
      • add

        default void add​(Vector2D<?,​?> vector,
                         Point2D<?,​?> point)
        Description copied from interface: Point2D
        Sets the value of this tuple to the sum of tuples t1 and t2.
        Specified by:
        add in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        vector - the first tuple
        point - the second tuple
      • add

        default void add​(Vector2D<?,​?> vector)
        Description copied from interface: Point2D
        Sets the value of this tuple to the sum of itself and t1.
        Specified by:
        add in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        vector - the other tuple
      • scaleAdd

        default void scaleAdd​(int scale,
                              Vector2D<?,​?> vector,
                              Point2D<?,​?> point)
        Description copied from interface: Point2D
        Sets the value of this tuple to the scalar multiplication of tuple t1 plus tuple t2 (this = s*vector + point).
        Specified by:
        scaleAdd in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        scale - the scalar value
        vector - the tuple to be multipled
        point - the tuple to be added
      • scaleAdd

        default void scaleAdd​(double scale,
                              Vector2D<?,​?> vector,
                              Point2D<?,​?> point)
        Description copied from interface: Point2D
        Sets the value of this tuple to the scalar multiplication of tuple t1 plus tuple t2 (this = s*vector + point).
        Specified by:
        scaleAdd in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        scale - the scalar value
        vector - the tuple to be multipled
        point - the tuple to be added
      • scaleAdd

        default void scaleAdd​(int scale,
                              Point2D<?,​?> point,
                              Vector2D<?,​?> vector)
        Description copied from interface: Point2D
        Sets the value of this tuple to the scalar multiplication of tuple t1 plus tuple t2 (this = s*point + vector).
        Specified by:
        scaleAdd in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        scale - the scalar value
        point - the tuple to be multipled
        vector - the tuple to be added
      • scaleAdd

        default void scaleAdd​(double scale,
                              Point2D<?,​?> point,
                              Vector2D<?,​?> vector)
        Description copied from interface: Point2D
        Sets the value of this tuple to the scalar multiplication of tuple t1 plus tuple t2 (this = s*point + vector).
        Specified by:
        scaleAdd in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        scale - the scalar value
        point - the tuple to be multipled
        vector - the tuple to be added
      • scaleAdd

        default void scaleAdd​(int scale,
                              Vector2D<?,​?> vector)
        Description copied from interface: Point2D
        Sets the value of this tuple to the scalar multiplication of itself and then adds tuple t1 (this = s*this + vector).
        Specified by:
        scaleAdd in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        scale - the scalar value
        vector - the tuple to be added
      • scaleAdd

        default void scaleAdd​(double scale,
                              Vector2D<?,​?> vector)
        Description copied from interface: Point2D
        Sets the value of this tuple to the scalar multiplication of itself and then adds tuple t1 (this = s*this + vector).
        Specified by:
        scaleAdd in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        scale - the scalar value
        vector - the tuple to be added
      • sub

        default void sub​(Point2D<?,​?> point,
                         Vector2D<?,​?> vector)
        Description copied from interface: Point2D
        Sets the value of this tuple to the difference of tuples point and vector (this = point - vector).
        Specified by:
        sub in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        point - the first tuple
        vector - the second tuple
      • sub

        default void sub​(Vector2D<?,​?> vector)
        Description copied from interface: Point2D
        Sets the value of this tuple to the difference of itself and the given vector (this = this - vector).
        Specified by:
        sub in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        vector - the other tuple
      • operator_add

        default void operator_add​(Vector2D<?,​?> v)
        Description copied from interface: Point2D
        Increment this point with the given vector: this += v.

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

        Specified by:
        operator_add in interface Point2D<RP extends Point2D<? super RP,​? super RV>,​RV extends Vector2D<? super RV,​? super RP>>
        Parameters:
        v - the vector to add
        See Also:
        Point2D.add(Vector2D)