Interface GeomFactory1D<V extends Vector1D<? super V,​? super P,​?>,​P extends Point1D<? super P,​? super V,​?>>

    • Method Detail

      • convertToPoint

        @Pure
        P convertToPoint​(Point1D<?,​?,​?> pt)
        Convert the given point if it is not of the right type.
        Parameters:
        pt - the point to convert.
        Returns:
        p if it is of type P, or a copy of p.
      • convertToPoint

        @Pure
        P convertToPoint​(Vector1D<?,​?,​?> pt)
        Convert the given vector if it is not of the right type.
        Parameters:
        pt - the point to convert.
        Returns:
        the point.
      • convertToVector

        @Pure
        V convertToVector​(Point1D<?,​?,​?> pt)
        Convert the given point.
        Parameters:
        pt - the point to convert.
        Returns:
        the vector.
      • convertToVector

        @Pure
        V convertToVector​(Vector1D<?,​?,​?> vector)
        Convert the given vector.
        Parameters:
        vector - the vector to convert.
        Returns:
        the vector.
      • newPoint

        @Pure
        P newPoint​(Segment1D<?,​?> segment)
        Create a point.
        Parameters:
        segment - the segment.
        Returns:
        the point.
      • newPoint

        @Pure
        P newPoint​(Segment1D<?,​?> segment,
                   double x,
                   double y)
        Create a point.
        Parameters:
        segment - the segment.
        x - x coordinate of the point.
        y - y coordinate of the point.
        Returns:
        the point.
      • newPoint

        @Pure
        P newPoint​(Segment1D<?,​?> segment,
                   int x,
                   int y)
        Create a point.
        Parameters:
        segment - the segment.
        x - x coordinate of the point.
        y - y coordinate of the point.
        Returns:
        the point.
      • newVector

        @Pure
        V newVector​(Segment1D<?,​?> segment)
        Create a vector.
        Parameters:
        segment - the segment.
        Returns:
        the vector.
      • newVector

        @Pure
        V newVector​(Segment1D<?,​?> segment,
                    double x,
                    double y)
        Create a vector.
        Parameters:
        segment - the segment.
        x - x coordinate of the vector.
        y - y coordinate of the vector.
        Returns:
        the vector.
      • newVector

        @Pure
        V newVector​(Segment1D<?,​?> segment,
                    int x,
                    int y)
        Create a vector.
        Parameters:
        segment - the segment.
        x - x coordinate of the vector.
        y - y coordinate of the vector.
        Returns:
        the vector.