LineSegHC

ostrat.prid.phex.LineSegHC
See theLineSegHC companion object
case class LineSegHC(r1: Int, c1: Int, r2: Int, c2: Int) extends LineSegLikeInt4[HCoord], Int4Elem

A 2d line upon a HexGrid defined by its start and end HGrid HCoords.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Int4Elem
trait IntNElem
trait ValueNElem
trait SpecialT
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def endPt: HCoord

The end HCoord point.

The end HCoord point.

Attributes

def int1: Int
def int2: Int
def int3: Int
def int4: Int

Transforms from HCoords to Pt2s.

Transforms from HCoords to Pt2s.

Attributes

def projLineSeg(implicit proj: HSysProjection): LineSeg

Uses the implicit HGridSysProjecton parameter to convert from HCoords to Pt2s.

Uses the implicit HGridSysProjecton parameter to convert from HCoords to Pt2s.

Attributes

The start HCoord point.

The start HCoord point.

Attributes

def transLineSeg(scale: Double, rOrigin: Int, cOrigin: Int): LineSeg
def transLineSeg(scale: Double, origin: HCoord): LineSeg

Incorrect.

Incorrect.

Attributes

Inherited methods

override def intBufferAppend(buffer: ArrayBuffer[Int]): Unit

Utility method to append this element on to an ArrayBuffer[Int]. End users should rarely need to use this method. This is useful for methods like filter.

Utility method to append this element on to an ArrayBuffer[Int]. End users should rarely need to use this method. This is useful for methods like filter.

Attributes

Definition Classes
Inherited from:
Int4Elem
override def intForeach(f: Int => Unit): Unit

Performs the side effecting function on each Double in this Product element.

Performs the side effecting function on each Double in this Product element.

Attributes

Definition Classes
Inherited from:
Int4Elem
def map[VB, LB <: LineSegLike[VB]](f: HCoord => VB)(implicit build: LineSegLikeMapBuilder[VB, LB]): LB

Transforms this LineSegLike into a LineSegLike of type LB, by mapping the vertices to vertices of type VB.

Transforms this LineSegLike into a LineSegLike of type LB, by mapping the vertices to vertices of type VB.

Attributes

Inherited from:
LineSegLike
def mapOpt[VB, LB <: LineSegLike[VB]](f: HCoord => Option[VB])(implicit build: LineSegLikeMapBuilder[VB, LB]): Option[LB]

Optionally Transforms this LineSegLike into a LineSegLike of type LB, by mapping the vertices to vertices of type VB, as long as both vertices map to a Some result.

Optionally Transforms this LineSegLike into a LineSegLike of type LB, by mapping the vertices to vertices of type VB, as long as both vertices map to a Some result.

Attributes

Inherited from:
LineSegLike

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product