Class Pixy2Line.Intersection
- java.lang.Object
-
- io.github.pseudoresonance.pixy2api.Pixy2Line.Intersection
-
- Enclosing class:
- Pixy2Line
public static class Pixy2Line.Intersection extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Intersection(int x, int y, int number, int reserved, Pixy2Line.IntersectionLine[] lines)
Constructs Intersection object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pixy2Line.IntersectionLine[]
getLines()
int
getNumber()
int
getReserved()
int
getX()
int
getY()
void
print()
Prints intersection data to consolejava.lang.String
toString()
Returns a string of intersection data
-
-
-
Constructor Detail
-
Intersection
public Intersection(int x, int y, int number, int reserved, Pixy2Line.IntersectionLine[] lines)
Constructs Intersection object- Parameters:
x
- X valuey
- Y valuenumber
- Number of linesreserved
- Reservedlines
- 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 classjava.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
-
getLines
public Pixy2Line.IntersectionLine[] getLines()
- Returns:
- Array of lines
-
-