public class RectangularLine extends Object
Constructor and Description |
---|
RectangularLine(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(RectangularLine other)
Returns true if this line intersects with the other line
|
public RectangularLine(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(RectangularLine other)
other
- the other lineCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.