LSegLen2

ostrat.geom.LSegLen2
See theLSegLen2 companion object
trait LSegLen2[+VT <: PtLen2] extends LSegBase[VT], DrawableLen2

A line segment whose coordinates are specified in Length units.

Attributes

Companion
object
Graph
Supertypes
trait DrawableLen2
trait GeomLen2Elem
trait LSegBase[VT]
trait ValueNElem
trait SpecialT
class Object
trait Matchable
class Any
Show all
Known subtypes
class LSegFm2
class LSegKm2
class LSegM2
class LineSegPm2

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 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

def scale(operand: Double): LSegLen2[VT]

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

override def slate(operand: VecPtLen2): LSegLen2[VT]

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): LSegLen2[VT]

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): LSegLen2[VT]

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(xOperand: Length): LSegLen2[VT]

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: 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

def xEnd: Length
def xStart: Length
def yEnd: Length
def yStart: Length

Concrete methods

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 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

Inherited from:
LSegBase
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

Inherited from:
LSegBase