public class JIPipeDesktopRectangularLine extends Object
Constructor and Description |
---|
JIPipeDesktopRectangularLine(int a0,
int a1,
int b0,
int b1) |
Modifier and Type | Method and Description |
---|---|
int |
getA1() |
int |
getB1() |
int |
getLargerMajor() |
int |
getLargerMinor() |
int |
getSmallerMajor() |
int |
getSmallerMinor() |
int |
intersect(JIPipeDesktopRectangularLine other)
Returns number of pixels that intersect with another line
|
public JIPipeDesktopRectangularLine(int a0, int a1, int b0, int b1)
a0
- the first major coordinate (equivalent to x0 in horizontal)a1
- the second major coordinate (equivalent to x1 in horizontal).b0
- the first minor coordinate (equivalent to y0 in horizontal)b1
- the second minor coordinate (equivalent to y1 in horizontal)public int getA1()
public int getB1()
public int getSmallerMajor()
public int getLargerMajor()
public int getSmallerMinor()
public int getLargerMinor()
public int intersect(JIPipeDesktopRectangularLine other)
other
- the other lineCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.