Class Pixy2CCC.Block

  • Enclosing class:
    Pixy2CCC

    public static class Pixy2CCC.Block
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Block​(int signature, int x, int y, int width, int height, int angle, int index, int age)
      Constructs signature block instance
    • Constructor Detail

      • Block

        public Block​(int signature,
                     int x,
                     int y,
                     int width,
                     int height,
                     int angle,
                     int index,
                     int age)
        Constructs signature block instance
        Parameters:
        signature - Block signature
        x - X value
        y - Y value
        width - Block width
        height - Block height
        angle - Angle from camera
        index - Block index
        age - Block age
    • Method Detail

      • print

        public void print()
        Prints signature block data to console
      • toString

        public java.lang.String toString()
        Returns a string of signature block data
        Overrides:
        toString in class java.lang.Object
        Returns:
        String of signature block data
      • getSignature

        public int getSignature()
        Returns:
        Block signature
      • getX

        public int getX()
        Returns:
        Block X value
      • getY

        public int getY()
        Returns:
        Block Y value
      • getWidth

        public int getWidth()
        Returns:
        Block width
      • getHeight

        public int getHeight()
        Returns:
        Block height
      • getAngle

        public int getAngle()
        Returns:
        Angle from camera
      • getIndex

        public int getIndex()
        Returns:
        Block index
      • getAge

        public int getAge()
        Returns:
        Block age