LSegKm2

ostrat.geom.LSegKm2
See theLSegKm2 companion object
class LSegKm2(val xStartKilometresNum: Double, val yStartKilometresNum: Double, val xEndKilometresNum: Double, val yEndKilometresNum: Double) extends LSegLen2[PtKm2], LSegDbl4[PtKm2], Dbl4Elem

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

Attributes

Companion
object
Graph
Supertypes
trait LSegDbl4[PtKm2]
trait Dbl4Elem
trait LSegDblN[PtKm2]
trait DblNElem
trait LSegLen2[PtKm2]
trait DrawableLen2
trait GeomLen2Elem
trait LSegBase[PtKm2]
trait ValueNElem
trait SpecialT
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

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
def endPt: PtKm2

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

override def mapGeom2(operand: Length): LSeg2

Divides by a Length to produce an equivalent Aff2Elem without Length units.

Divides by a Length to produce an equivalent Aff2Elem without Length units.

Attributes

Definition Classes
override def scale(operand: Double): LSegKm2

Uniform 2 Length dimension geometric scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. The Return type will be narrowed in sub traits / classes.

Uniform 2 Length dimension geometric scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
override def slate(operand: VecPtLen2): LSegKm2

Translate 2 Length dimension geometric transformation GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload taking the X and Y Deltas as separate parameters, slateX and slateY methods are also available.

Translate 2 Length dimension geometric transformation GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload taking the X and Y Deltas as separate parameters, slateX and slateY methods are also available.

Attributes

Definition Classes
override def slate(xOperand: Length, yOperand: Length): LSegKm2

Translate 2 Length dimension geometric transformation, taking the xDelta and yDelta as parameters on this GeomLen2Elem returning a GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload method taking a Pt2 or Vec2 as a parameter, slateX and slateY methods are also available.

Translate 2 Length dimension geometric transformation, taking the xDelta and yDelta as parameters on this GeomLen2Elem returning a GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload method taking a Pt2 or Vec2 as a parameter, slateX and slateY methods are also available.

Attributes

Definition Classes
override def slateX(xOperand: Length): LSegKm2

Translate 2 Length dimension geometric transformation in the X dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.

Translate 2 Length dimension geometric transformation in the X dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.

Attributes

Definition Classes
override def slateY(yOperand: Length): LSegKm2

Translate 2 Length dimension geometric transformation in the Y dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.

Translate 2 Length dimension geometric transformation in the Y dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.

Attributes

Definition Classes
def startPt: PtKm2

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

override def xEndFemtometresNum: Double

Attributes

Definition Classes
override def xEndMetresNum: Double

Attributes

Definition Classes
override def xEndPicometresNum: Double

Attributes

Definition Classes

Attributes

Definition Classes
override def xStartMetresNum: Double

Attributes

Definition Classes
override def xStartPicometresNum: Double

Attributes

Definition Classes
override def yEndFemtometresNum: Double

Attributes

Definition Classes
override def yEndMetresNum: Double

Attributes

Definition Classes
override def yEndPicometresNum: Double

Attributes

Definition Classes

Attributes

Definition Classes
override def yStartMetresNum: Double

Attributes

Definition Classes
override def yStartPicometresNum: Double

Attributes

Definition Classes

Inherited methods

final 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
final 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
override def draw(lineWidth: Double, lineColour: Colour): LineSegLen2Draw

Draws the object. The line width is defined in pixels.

Draws the object. The line width is defined in pixels.

Attributes

Definition Classes
Inherited from:
LSegLen2
def map[VB, LB <: LSegBase[VB]](f: PtKm2 => 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

Inherited from:
LSegBase
def mapOpt[VB, LB <: LSegBase[VB]](f: PtKm2 => 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

Inherited from:
LSegBase