Package 

Class RectL

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public long left
      public long top
      public long right
      public long bottom
    • Constructor Summary

      Constructors 
      Constructor Description
      RectL()
      RectL(long pLeft, long pTop, long pRight, long pBottom)
      RectL(RectL pOther)
    • Method Summary

      Modifier and Type Method Description
      void set(long pLeft, long pTop, long pRight, long pBottom)
      void set(RectL pOther)
      void union(long x, long y)
      static boolean intersects(RectL a, RectL b)
      boolean contains(long x, long y) Returns true if (x,y) is inside the rectangle.
      void inset(long dx, long dy)
      final long width()
      final long height()
      String toString()
      boolean equals(Object o)
      int hashCode()
      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 getClipBounds after a canvas rotationThe code is supposed to be exactly the same as the Rect version, except for int/long
      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 getClipBounds after a canvas rotationThe code is supposed to be exactly the same as the RectL version, except for int/longThe code is written to run as fast as possible because it's constantly used when drawing markers
      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 getRotatedY(long pX, long pY, double pDegrees, long pCenterX, long pCenterY) Apply a rotation on a point and get the resulting Y
      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, long pCenterX, long pCenterY, double pCos, double pSin) Apply a rotation on a point and get the resulting Y
      void offset(long pDx, long pDy)
      void union(long pLeft, long pTop, long pRight, long pBottom)
      void union(RectL pRect)
      long centerX()
      long centerY()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RectL

        RectL()
      • RectL

        RectL(long pLeft, long pTop, long pRight, long pBottom)
      • RectL

        RectL(RectL pOther)
    • Method Detail

      • set

         void set(long pLeft, long pTop, long pRight, long pBottom)
      • union

         void union(long x, long y)
      • contains

         boolean contains(long x, long y)

        Returns true if (x,y) is inside the rectangle. Left and top coordinates are consideredinside the bounds, while right and bottom are not.

      • inset

         void inset(long dx, long dy)
      • width

         final long width()
      • getBounds

         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 getClipBounds after a canvas rotationThe code is supposed to be exactly the same as the Rect version, except for int/long

      • getBounds

         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 getClipBounds after a canvas rotationThe code is supposed to be exactly the same as the RectL version, except for int/longThe code is written to run as fast as possible because it's constantly used when drawing markers

      • getRotatedX

         static long getRotatedX(long pX, long pY, double pDegrees, long pCenterX, long pCenterY)

        Apply a rotation on a point and get the resulting X

      • getRotatedY

         static long getRotatedY(long pX, long pY, double pDegrees, long pCenterX, long pCenterY)

        Apply a rotation on a point and get the resulting Y

      • getRotatedX

         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

      • getRotatedY

         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

      • offset

         void offset(long pDx, long pDy)
      • union

         void union(long pLeft, long pTop, long pRight, long pBottom)