Class InnerComputationGeomFactory

    • Method Detail

      • convertToPoint

        public InnerComputationPoint2afp 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.
      • newPoint

        public InnerComputationPoint2afp 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 InnerComputationPoint2afp 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 InnerComputationVector2afp 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 InnerComputationVector2afp 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.