
| Modifier and Type | Field and Description |
|---|---|
long |
bottom |
long |
left |
long |
right |
long |
top |
| Constructor and Description |
|---|
RectL() |
RectL(long pLeft,
long pTop,
long pRight,
long pBottom) |
RectL(RectL pOther) |
| Modifier and Type | Method and Description |
|---|---|
long |
centerX() |
long |
centerY() |
boolean |
contains(long x,
long y)
Returns true if (x,y) is inside the rectangle.
|
boolean |
equals(Object o) |
static Rect |
getBounds(Rect pIn,
int pCenterX,
int pCenterY,
double pDegrees,
Rect pReuse)
Rough computation of the smaller
Rect that contains a rotated Rect
Emulating Canvas.getClipBounds(Rect) after a canvas rotation
The code is supposed to be exactly the same as the RectL version, except for int/long
The code is written to run as fast as possible because it's constantly used when drawing markers |
static RectL |
getBounds(RectL pIn,
long pCenterX,
long pCenterY,
double pDegrees,
RectL pReuse)
Rough computation of the smaller
RectL that contains a rotated RectL
Emulating Canvas.getClipBounds(Rect) after a canvas rotation
The code is supposed to be exactly the same as the Rect version, except for int/long |
static long |
getRotatedX(long pX,
long pY,
double pDegrees,
long pCenterX,
long pCenterY)
Apply a rotation on a point and get the resulting X
|
static long |
getRotatedX(long pX,
long pY,
long pCenterX,
long pCenterY,
double pCos,
double pSin)
Apply a rotation on a point and get the resulting X
|
static long |
getRotatedY(long pX,
long pY,
double pDegrees,
long pCenterX,
long pCenterY)
Apply a rotation on a point and get the resulting Y
|
static long |
getRotatedY(long pX,
long pY,
long pCenterX,
long pCenterY,
double pCos,
double pSin)
Apply a rotation on a point and get the resulting Y
|
int |
hashCode() |
long |
height() |
void |
inset(long dx,
long dy) |
static boolean |
intersects(RectL a,
RectL b) |
void |
offset(long pDx,
long pDy) |
void |
set(long pLeft,
long pTop,
long pRight,
long pBottom) |
void |
set(RectL pOther) |
String |
toString() |
void |
union(long x,
long y) |
void |
union(long pLeft,
long pTop,
long pRight,
long pBottom) |
void |
union(RectL pRect) |
long |
width() |
public long left
public long top
public long right
public long bottom
public RectL()
public RectL(long pLeft,
long pTop,
long pRight,
long pBottom)
public RectL(RectL pOther)
public void set(long pLeft,
long pTop,
long pRight,
long pBottom)
public void set(RectL pOther)
public void union(long x,
long y)
public boolean contains(long x,
long y)
public void inset(long dx,
long dy)
public final long width()
public final long height()
public static RectL getBounds(RectL pIn, long pCenterX, long pCenterY, double pDegrees, RectL pReuse)
RectL that contains a rotated RectL
Emulating Canvas.getClipBounds(Rect) after a canvas rotation
The code is supposed to be exactly the same as the Rect version, except for int/longpublic static Rect getBounds(Rect pIn, int pCenterX, int pCenterY, double pDegrees, Rect pReuse)
Rect that contains a rotated Rect
Emulating Canvas.getClipBounds(Rect) after a canvas rotation
The code is supposed to be exactly the same as the RectL version, except for int/long
The code is written to run as fast as possible because it's constantly used when drawing markerspublic static long getRotatedX(long pX,
long pY,
double pDegrees,
long pCenterX,
long pCenterY)
public static long getRotatedY(long pX,
long pY,
double pDegrees,
long pCenterX,
long pCenterY)
public static long getRotatedX(long pX,
long pY,
long pCenterX,
long pCenterY,
double pCos,
double pSin)
public static long getRotatedY(long pX,
long pY,
long pCenterX,
long pCenterY,
double pCos,
double pSin)
public void offset(long pDx,
long pDy)
public void union(long pLeft,
long pTop,
long pRight,
long pBottom)
public void union(RectL pRect)
public long centerX()
public long centerY()