LineSegM2

ostrat.geom.LineSegM2
See theLineSegM2 companion object
class LineSegM2(val xStartMetresNum: Double, val yStartMetresNum: Double, val xEndMetresNum: Double, val yEndMetresNum: Double) extends LineSegLength2[PtM2], LineSegLikeDbl4[PtM2], Dbl4Elem

A 2 dimensional line segment measured in metres, equivalent of the LineSeg class. A straight line between two points on a 2 dimensional flat surface.

Attributes

Companion
object
Graph
Supertypes
trait Dbl4Elem
trait DblNElem
trait LineSegLike[PtM2]
trait ValueNElem
trait SpecialT
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def /(operand: Length): LineSeg

Divides by a Length to produce a scalar LineSeg.

Divides by a Length to produce a scalar LineSeg.

Attributes

Definition Classes
override def dbl1: Double

Attributes

Definition Classes
override def dbl2: Double

Attributes

Definition Classes
override def dbl3: Double

Attributes

Definition Classes
override def dbl4: Double

Attributes

Definition Classes
override def endPt: PtM2

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

Definition Classes
override def startPt: PtM2

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

Definition Classes
override def xEnd: Metres

Attributes

Definition Classes
override def xEndKilometresNum: Double

Attributes

Definition Classes
override def xStart: Metres

Attributes

Definition Classes
override def xStartKilometresNum: Double

Attributes

Definition Classes
override def yEnd: Metres

Attributes

Definition Classes
override def yEndKilometresNum: Double

Attributes

Definition Classes
override def yStart: Metres

Attributes

Definition Classes
override def yStartKilometresNum: Double

Attributes

Definition Classes

Inherited methods

override def dblBufferAppend(buffer: ArrayBuffer[Double]): Unit

Utility method to append this as an element to an ArrayBuffer[Double]. End users should rarely need to use this method.

Utility method to append this as an element to an ArrayBuffer[Double]. End users should rarely need to use this method.

Attributes

Definition Classes
Inherited from:
Dbl4Elem
override def dblForeach(f: Double => 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:
Dbl4Elem
def map[VB, LB <: LineSegLike[VB]](f: PtM2 => VB)(implicit build: LineSegLikeBuilderMap[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: PtM2 => Option[VB])(implicit build: LineSegLikeBuilderMap[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