Interface UnmodifiableVector3D<RV extends Vector3D<? super RV,​? super RP>,​RP extends Point3D<? super RP,​? super RV>>

    • Method Detail

      • add

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

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

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

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

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

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

        default void sub​(Vector3D<?,​?> vector1,
                         Vector3D<?,​?> vector2)
        Description copied from interface: Vector3D
        Sets the value of this tuple to the difference of tuples t1 and t2 (this = t1 - t2).
        Specified by:
        sub in interface Vector3D<RV extends Vector3D<? super RV,​? super RP>,​RP extends Point3D<? super RP,​? super RV>>
        Parameters:
        vector1 - the first tuple
        vector2 - the second tuple
      • sub

        default void sub​(Point3D<?,​?> point1,
                         Point3D<?,​?> point2)
        Description copied from interface: Vector3D
        Sets the value of this tuple to the difference of tuples t1 and t2 (this = t1 - t2).
        Specified by:
        sub in interface Vector3D<RV extends Vector3D<? super RV,​? super RP>,​RP extends Point3D<? super RP,​? super RV>>
        Parameters:
        point1 - the first tuple
        point2 - the second tuple
      • sub

        default void sub​(Vector3D<?,​?> vector1)
        Description copied from interface: Vector3D
        Sets the value of this tuple to the difference of itself and t1 (this = this - t1).
        Specified by:
        sub in interface Vector3D<RV extends Vector3D<? super RV,​? super RP>,​RP extends Point3D<? super RP,​? super RV>>
        Parameters:
        vector1 - the other tuple
      • crossLeftHand

        default void crossLeftHand​(Vector3D<?,​?> vector1,
                                   Vector3D<?,​?> vector2)
        Description copied from interface: Vector3D
        Computes the cross product of the vectors v1 and v2 as if the vectors are inside a left-hand coordinate system; and put the result in this vector.

        Specified by:
        crossLeftHand in interface Vector3D<RV extends Vector3D<? super RV,​? super RP>,​RP extends Point3D<? super RP,​? super RV>>
        Parameters:
        vector1 - the left operand.
        vector2 - the right operand.
      • crossRightHand

        default void crossRightHand​(Vector3D<?,​?> vector1,
                                    Vector3D<?,​?> vector2)
        Description copied from interface: Vector3D
        Computes the cross product of the vectors v1 and v2 as if the vectors are inside a left-hand coordinate system; and put the result in this vector.

        Specified by:
        crossRightHand in interface Vector3D<RV extends Vector3D<? super RV,​? super RP>,​RP extends Point3D<? super RP,​? super RV>>
        Parameters:
        vector1 - the left operand
        vector2 - the right operand
      • normalize

        default void normalize​(Vector3D<?,​?> vector)
        Description copied from interface: Vector3D
        Sets the value of this vector to the normalization of vector v1.
        Specified by:
        normalize in interface Vector3D<RV extends Vector3D<? super RV,​? super RP>,​RP extends Point3D<? super RP,​? super RV>>
        Parameters:
        vector - the un-normalized vector
      • turnVector

        default void turnVector​(Vector3D<?,​?> axis,
                                double angle)
        Description copied from interface: Vector3D
        Turn this vector about the given rotation angle.
        Specified by:
        turnVector in interface Vector3D<RV extends Vector3D<? super RV,​? super RP>,​RP extends Point3D<? super RP,​? super RV>>
        Parameters:
        axis - is the axis of rotation.
        angle - is the rotation angle in radians.
      • setLength

        default void setLength​(double newLength)
        Description copied from interface: Vector3D
        Change the length of the vector. The direction of the vector is unchanged.
        Specified by:
        setLength in interface Vector3D<RV extends Vector3D<? super RV,​? super RP>,​RP extends Point3D<? super RP,​? super RV>>
        Parameters:
        newLength - - the new length.