LineSegLike

ostrat.geom.LineSegLike
trait LineSegLike[VT] extends ValueNElem

A class that is like a LineSeg, includes LineSeg and LineSegM2. 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 LineSegLikeDblN[VT]
trait LineSegLikeDbl4[VT]
class LineSegLL
class LineSeg
class LineSegM2
trait LineSegLikeDbl6[VT]
class LineSeg3
trait LineSegLikeIntN[VT]
trait LineSegLikeInt4[VT]
class LineSegHC
class LineSegSC
trait LineSegLikeInt6[VT]
class LineSegM3
Show all

Members list

Value members

Abstract methods

def endPt: VT

The end point of the LineSeglike. The type of start point will depend on the VT vertex type. For example a Pt2 for a LineSeg a PtM2 for a LineSegM2.

The end point of the LineSeglike. The type of start point will depend on the VT vertex type. For example a Pt2 for a LineSeg a PtM2 for a LineSegM2.

Attributes

def startPt: VT

The start point of the LineSeglike. The type of start point will depend on the VT vertex type. For example a Pt2 for a LineSeg a PtM2 for a LineSegM2.

The start point of the LineSeglike. The type of start point will depend on the VT vertex type. For example a Pt2 for a LineSeg a PtM2 for a LineSegM2.

Attributes

Concrete methods

def map[VB, LB <: LineSegLike[VB]](f: VT => 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

def mapOpt[VB, LB <: LineSegLike[VB]](f: VT => 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