case class HereTile(tileId: Long) extends Name with Product with Serializable
Name of heretile partition.
- Alphabetic
- By Inheritance
- HereTile
- Product
- Equals
- Name
- KeyOrName
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
HereTile(latitude: Double, longitude: Double, level: Int)
Create a new tile that contains a given geographic point
Create a new tile that contains a given geographic point
- latitude
Latitude of a point, range [-90, +90]
- longitude
Longitude of the point, range [-180, +180]
- level
The level of the tile, 0 is the root tile, 1 the two hemispheres
-
new
HereTile(x: Int, y: Int, level: Int)
Create a new tile
Create a new tile
- x
X-coordinate within the level
- y
Y-coordinate within the level
- level
The level of the tile, 0 is the root tile, 1 the two hemispheres
-
new
HereTile(quad: HereQuad)
Create a new tile given a HereQuad
- new HereTile(tileId: Long)
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
ancestor(level: Int): HereTile
Returns the ancestor of the
HereTile
at a given level.Returns the ancestor of the
HereTile
at a given level.- level
The level of the ancestor. Must be a valid ancestor level, that is, a non-negative value that is less or equal to the current tiles level.
- returns
The ancestor at that level.
-
def
ancestors: Seq[HereTile]
The ancestors tiles, that is the chain of the parents until the root tile is reached
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
descendants(level: Int): Set[HereTile]
Returns the descendants of the
HereTile
at a given level.Returns the descendants of the
HereTile
at a given level.- level
The level of the descendants. Must a valid descendant level, that is, a non-negative value that is greater or equal to the current tiles level.
- returns
The descendants at that level.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- HereTile → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
level: Int
The level of the tile in the tree, 0 is the root tile, 1 the two hemispheres and so on
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
neighbors(radius: Int): Set[HereTile]
Returns the neighborhood of the HereTile at a certain radius.
Returns the neighborhood of the HereTile at a certain radius. For example:
- radius 0 returns the tile itself - radius 1 typically returns 9 tiles, unless we are around the north or south pole - radius 2 typically returns 25 tiles.
- radius
The radius of the neighborhood, must be a non-negative value.
- returns
The set of tiles in the neighborhood, at most (1+2*radius)² tiles.
- Note
If a tile borders 180°/-180° longitude, all tiles to the east, west, north, and south are considered neighbors. If a tile borders 90° latitude, only tiles to the east, west, and south are considered neighbors. If a tile borders -90° latitude, only tiles to the east, west, and north are considered neighbors.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
parent: Option[HereTile]
The parent tile, when not already the root tile
-
def
quad: HereQuad
Utility method to convert HereTile to HereQuad.
Utility method to convert HereTile to HereQuad.
- returns
A newly-allocalted HereQuad object with the same tileId
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tileId: Long
-
def
toString(): String
- Definition Classes
- HereTile → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
x: Int
X-coordinate of the tile within its level
-
def
y: Int
Y-coordinate of the tile within its level