LSegBase

ostrat.geom.LSegBase
trait LSegBase[+VT] extends ValueNElem

A class that is like a LineSeg, includes LSeg2 and LSegM2. The trait takes the type parameter of the vertex.

Attributes

Graph
Supertypes
trait ValueNElem
trait SpecialT
class Object
trait Matchable
class Any
Known subtypes
trait LSegDblN[VT]
trait LSegDbl4[VT]
class LineSegLL
class LSeg2
class LSegFm2
class LSegKm2
class LSegM2
class LineSegPm2
trait LSegDbl6[VT]
class LSeg3
trait LSegIntN[VT]
trait LSegInt4[VT]
class LSegHC
class LSegSC
trait LSegInt6[VT]
class LSegHvOffset
trait LSegLen2[VT]
trait LineSegLength3[VT]
class LSegM3
class LineSegKm3
Show all

Members list

Value members

Abstract methods

def endPt: VT

The end point of the line segment. The type of start point will depend on the VT vertex type. For example a Pt2 for a LSeg2 a PtM2 for a LSegM2.

The end point of the line segment. The type of start point will depend on the VT vertex type. For example a Pt2 for a LSeg2 a PtM2 for a LSegM2.

Attributes

def startPt: VT

The start point of the line segment The type of start point will depend on the VT vertex type. For example a Pt2 for a LSeg2 a PtM2 for a LSegM2.

The start point of the line segment The type of start point will depend on the VT vertex type. For example a Pt2 for a LSeg2 a PtM2 for a LSegM2.

Attributes

Concrete methods

def map[VB, LB <: LSegBase[VB]](f: VT => VB)(implicit build: BuilderMapLSegBase[VB, LB]): LB

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

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

Attributes

def mapOpt[VB, LB <: LSegBase[VB]](f: VT => Option[VB])(implicit build: BuilderMapLSegBase[VB, LB]): Option[LB]

Optionally Transforms this LSegBase into a LSegBase 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 LSegBase into a LSegBase of type LB, by mapping the vertices to vertices of type VB, as long as both vertices map to a Some result.

Attributes