Class Pixy2Line.Intersection

  • Enclosing class:
    Pixy2Line

    public static class Pixy2Line.Intersection
    extends java.lang.Object
    • Constructor Detail

      • Intersection

        public Intersection​(int x,
                            int y,
                            int number,
                            int reserved,
                            Pixy2Line.IntersectionLine[] lines)
        Constructs Intersection object
        Parameters:
        x - X value
        y - Y value
        number - Number of lines
        reserved - Reserved
        lines - Array of lines
    • Method Detail

      • print

        public void print()
        Prints intersection data to console
      • toString

        public java.lang.String toString()
        Returns a string of intersection data
        Overrides:
        toString in class java.lang.Object
        Returns:
        String of intersection data
      • getX

        public int getX()
        Returns:
        X value
      • getY

        public int getY()
        Returns:
        Y value
      • getNumber

        public int getNumber()
        Returns:
        Number of lines
      • getReserved

        public int getReserved()
        Returns:
        Reserved