YLine

ostrat.geom.YLine
sealed case class YLine(xFactor: Double, offset: Double) extends Line

An infinite length 2 dimensional straight line defined in terms of its X value and and an offset. It is defined for all values of Y, but not for all values of x if the xFactor is 0.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Line
trait LineLike
trait GeomElem
class Object
trait Matchable
class Any
Show all
Known subtypes
class YParallel

Members list

Value members

Concrete methods

override def reflectPt(pt: Pt2): Pt2

Reflects, mirrors a point across this line.

Reflects, mirrors a point across this line.

Attributes

Definition Classes
override def slateXY(xDelta: Double, yDelta: Double): Line

Translate 2D geometric transformation. This abstract method returns a Line. The Return type will be narrowed in sub traits.

Translate 2D geometric transformation. This abstract method returns a Line. The Return type will be narrowed in sub traits.

Attributes

Definition Classes
def y(x: Double): Double

The point at which the line crosses the Y Axis, unless this YLine is the YAxis in which case it is merely a point where the line intersects the Y axis.

The point at which the line crosses the Y Axis, unless this YLine is the YAxis in which case it is merely a point where the line intersects the Y axis.

Attributes

Inherited methods

override def negX: Line

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Attributes

Definition Classes
Inherited from:
Line
override def negY: Line

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Attributes

Definition Classes
Inherited from:
Line

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override def prolign(matrix: ProlignMatrix): Line

Transforms this Line using a ProlignMatrix.

Transforms this Line using a ProlignMatrix.

Attributes

Definition Classes
Inherited from:
Line
override def reflect(lineLike: LineLike): Line

Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem. The return type will be narrowed in sub classes and traits.

Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
Line
override def rotate(angle: AngleVec): Line

Rotation 2D geometric transformation on a GeomElem. The return type will be narrowed in sub classes and traits.

Rotation 2D geometric transformation on a GeomElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
Line
override def rotate180: Line

Rotation of 180 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.

Rotation of 180 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
Line
override def rotate270: Line

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
Line
override def rotate90: Line

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
Line
override def scale(operand: Double): Line

Uniform 2D scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. Use the xyScale method for differential scaling.

Uniform 2D scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. Use the xyScale method for differential scaling.

Attributes

Definition Classes
Inherited from:
Line
override def scaleXY(xOperand: Double, yOperand: Double): Line

Scaling X and Y axes independently, 2D geometric transformation on this GeomElem, returns a new GeomElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Scaling X and Y axes independently, 2D geometric transformation on this GeomElem, returns a new GeomElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Attributes

Definition Classes
Inherited from:
Line
override def shearX(operand: Double): Line

Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Attributes

Definition Classes
Inherited from:
Line
override def shearY(operand: Double): Line

Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Attributes

Definition Classes
Inherited from:
Line