Class InnerComputationGeomFactory

    • Method Detail

      • convertToPoint

        public InnerComputationPoint2ai convertToPoint​(Point2D<?,​?> pt)
        Description copied from interface: GeomFactory2D
        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.
      • convertToVector

        public InnerComputationVector2ai convertToVector​(Point2D<?,​?> pt)
        Description copied from interface: GeomFactory2D
        Convert the given point.
        Parameters:
        pt - the point to convert.
        Returns:
        the vector.
      • newPoint

        public InnerComputationPoint2ai newPoint​(double x,
                                                 double y)
        Description copied from interface: GeomFactory2D
        Create a point.
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
        Returns:
        the point.
      • newPoint

        public InnerComputationPoint2ai newPoint​(int x,
                                                 int y)
        Description copied from interface: GeomFactory2D
        Create a point.
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
        Returns:
        the point.
      • newVector

        public InnerComputationVector2ai newVector​(double x,
                                                   double y)
        Description copied from interface: GeomFactory2D
        Create a vector.
        Parameters:
        x - x coordinate of the vector.
        y - y coordinate of the vector.
        Returns:
        the vector.
      • newVector

        public InnerComputationVector2ai newVector​(int x,
                                                   int y)
        Description copied from interface: GeomFactory2D
        Create a vector.
        Parameters:
        x - x coordinate of the vector.
        y - y coordinate of the vector.
        Returns:
        the vector.