Esempio n. 1
0
 public static bool RectContainsLoc(rect r, location loc)
 => RectContainsCoords(r, GetLocationX(loc), GetLocationY(loc));
Esempio n. 2
0
 public static double AngleBetweenPoints(location locA, location locB)
 => bj_RADTODEG *Atan2(GetLocationY(locB) - GetLocationY(locA), GetLocationX(locB) - GetLocationX(locA));
Esempio n. 3
0
 public static location OffsetLocation(location loc, double dx, double dy)
 => Location(GetLocationX(loc) + dx, GetLocationY(loc) + dy);
Esempio n. 4
0
 public static void MoveLocation(location whichLocation, double newX, double newY)
 {
     whichLocation.x = newX;
     whichLocation.y = newY;
 }
Esempio n. 5
0
 public static double GetLocationY(location whichLocation) => whichLocation.y;
Esempio n. 6
0
 public static void RemoveLocation(location whichLocation)
 => whichLocation.x = whichLocation.y = 0;
Esempio n. 7
0
 public static void MoveRectToLoc(rect whichRect, location newCenter)
 => MoveRectTo(whichRect, newCenter.x, newCenter.y);
Esempio n. 8
0
 public static void SetRectFromLoc(rect whichRect, location min, location max)
 => SetRect(whichRect, min.x, min.y, max.x, max.y);
Esempio n. 9
0
 public static rect RectFromLoc(location min, location max)
 => Rect(min.x, min.y, max.x, max.y);
Esempio n. 10
0
 public static bool CompareLocationsBJ(location A, location B)
 => GetLocationX(A) == GetLocationX(B) && GetLocationY(A) == GetLocationY(B);