public class Line extends java.lang.Object implements HoughShape
Constructor and Description |
---|
Line(int x1,
int y1,
int x2,
int y2,
int votes,
GenericHoughDetection.HoughReference houghReference) |
Modifier and Type | Method and Description |
---|---|
double |
getDistanceFromLineMidPointToPoint(int x,
int y) |
GenericHoughDetection.HoughReference |
getHoughReference() |
int[] |
getMidPoint() |
double |
getSlope() |
float |
getTheta() |
int |
getVotes() |
int |
getX1() |
int |
getX2() |
int |
getY1() |
int |
getY2() |
void |
setTheta(float theta) |
void |
setVotes(int votes) |
void |
setX1(int x1) |
void |
setX2(int x2) |
void |
setY1(int y1) |
void |
setY2(int y2) |
java.lang.String |
toString() |
public Line(int x1, int y1, int x2, int y2, int votes, GenericHoughDetection.HoughReference houghReference)
public double getSlope()
public GenericHoughDetection.HoughReference getHoughReference()
getHoughReference
in interface HoughShape
public int[] getMidPoint()
public double getDistanceFromLineMidPointToPoint(int x, int y)
public int getX1()
public void setX1(int x1)
public int getX2()
public void setX2(int x2)
public int getY1()
public void setY1(int y1)
public int getY2()
public void setY2(int y2)
public int getVotes()
public void setVotes(int votes)
public float getTheta()
public void setTheta(float theta)
public java.lang.String toString()
toString
in class java.lang.Object