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. final def !=(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

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

    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. final def eq(arg0: AnyRef): Boolean

    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. final def getClass(): java.lang.Class[_]

    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. final def isInstanceOf[T0]: Boolean

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

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

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

    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. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

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

  41. final def wait(): Unit

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

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

    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

    (Since version 2.8.0) 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