geotrellis.geometry.grid

GridLine

case class GridLine (p1: GridPoint, p2: GridPoint) extends Ordered[GridLine] with Product with Serializable

this represents a line segment from p1 -> p2. there are no assumptions about p1's relationship to p2. we determine pmin (the point whose Y coordinate is least (with lowest X coordinate used as a tie-breaker) and pmax (the opposite) for when we need to know which is least or greatest. we order lines by "lowest" pmin.

Linear Supertypes
Serializable, Serializable, Product, Equals, Ordered[GridLine], Comparable[GridLine], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. GridLine
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GridLine (p1: GridPoint, p2: GridPoint)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def < (that: GridLine): Boolean

    Definition Classes
    Ordered
  5. def <= (that: GridLine): Boolean

    Definition Classes
    Ordered
  6. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  7. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  8. def > (that: GridLine): Boolean

    Definition Classes
    Ordered
  9. def >= (that: GridLine): Boolean

    Definition Classes
    Ordered
  10. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  11. def canEqual (arg0: Any): Boolean

    Definition Classes
    GridLine → Equals
  12. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def compare (that: GridLine): Int

    compare two points based on minPoint (the upper/leftmost point).

    compare two points based on minPoint (the upper/leftmost point).

    Definition Classes
    GridLine → Ordered
  14. def compareTo (that: GridLine): Int

    Definition Classes
    Ordered → Comparable
  15. val dx : Int

  16. val dy : Int

  17. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  18. def equals (arg0: Any): Boolean

    Definition Classes
    GridLine → Equals → AnyRef → Any
  19. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  21. def getx (y: Int): Int

    given a Y coordinate we should be able to calculate what the X coordinate would be along this line.

    given a Y coordinate we should be able to calculate what the X coordinate would be along this line. if the line was (0, 0) -> (4, 6), then getx(3) would return 2.

  22. def hashCode (): Int

    Definition Classes
    GridLine → AnyRef → Any
  23. val horizontal : Boolean

  24. def interceptsX (x: Int): Boolean

  25. def interceptsY (y: Int): Boolean

  26. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  27. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  28. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  29. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  30. val p1 : GridPoint

  31. val p2 : GridPoint

  32. var pmax : GridPoint

  33. var pmin : GridPoint

  34. def productArity : Int

    Definition Classes
    GridLine → Product
  35. def productElement (arg0: Int): Any

    Definition Classes
    GridLine → Product
  36. def productIterator : Iterator[Any]

    Definition Classes
    Product
  37. def productPrefix : String

    Definition Classes
    GridLine → Product
  38. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  39. def toString (): String

    Definition Classes
    GridLine → AnyRef → Any
  40. val vertical : Boolean

  41. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  44. val xslope : Double

  45. val yslope : Double

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[GridLine]

Inherited from Comparable[GridLine]

Inherited from AnyRef

Inherited from Any