Straight line segment. A straight line in every day terminology. Mathematically: 2 dimensional directed, line segment. The name was chosen to avoid ambiguity.
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait AffinePreservetrait SimilarPreservetrait ProlignPreservetrait TypeStrNtrait ShowNtrait ShowDectrait Showtrait TypeStrtrait CurveSegtrait Drawabletrait LineLiketrait GeomElemtrait LineSegLikeDbl4[Pt2]trait Dbl4Elemtrait LineSegLikeDblN[Pt2]trait DblNElemtrait LineSegLike[Pt2]trait ValueNElemtrait SpecialTclass Objecttrait Matchableclass Any
Members list
Type members
Value members
Concrete methods
Draws this geometric element to produce a GraphElem graphical element, tht can be displayed or printed.
Draws this geometric element to produce a GraphElem graphical element, tht can be displayed or printed.
Attributes
Gives the Vec2 point at the specified distance to the left of the end point. At the end point turn left 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Gives the Vec2 point at the specified distance to the left of the end point. At the end point turn left 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Attributes
Gives the Vec2 point at the specified distance to the right of the end point. At the end point turn right 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Gives the Vec2 point at the specified distance to the right of the end point. At the end point turn right 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Attributes
The angle 90 degrees anti-clock wise from the angle of this directed line segment. The angle one gets by turning left from this Sline.
The angle 90 degrees anti-clock wise from the angle of this directed line segment. The angle one gets by turning left from this Sline.
Attributes
The mid or half way point of this lineSeg.
The mid or half way point of this lineSeg.
Attributes
Gives the Vec2 point at the specified distance to the left of the mid point. At the mid point turn left 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Gives the Vec2 point at the specified distance to the left of the mid point. At the mid point turn left 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Attributes
Gives the Vec2 point at the specified distance to the right of the mid point. At the mid point turn right 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Gives the Vec2 point at the specified distance to the right of the mid point. At the mid point turn right 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Attributes
1st parameter name.
2nd parameter name.
A method to perform all the ProlignPreserve transformations with a function from PT2 => PT2.
A method to perform all the ProlignPreserve transformations with a function from PT2 => PT2.
Attributes
Checks whether a forward horizontal ray crosses this polygon side.
Checks whether a forward horizontal ray crosses this polygon side.
Attributes
The angle 90 degrees clock wise from the angle of this line segment. The angle one gets by turning from from this Sline.
The angle 90 degrees clock wise from the angle of this line segment. The angle one gets by turning from from this Sline.
Attributes
Element 1 of this Show 2 element product.
Element 2 of this Show 2 element product.
Gives the Vec2 point at the specified distance to the left of the start point. At the start point turn left 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Gives the Vec2 point at the specified distance to the left of the start point. At the start point turn left 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Attributes
Gives the Vec2 point at the specified distance to the right of the start point. At the start point turn right 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Gives the Vec2 point at the specified distance to the right of the start point. At the start point turn right 90 degrees and then travel the given distance to the point. The Vec2 of that point is returned by this method.
Attributes
The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.
The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- LineSegLike
Attributes
- Inherited from:
- LineSegLike
Mirror, reflection 2D geometric transformation across the Y axis by negating X. The return type will be narrowed in sub traits / classes.
Mirror, reflection 2D geometric transformation across the Y axis by negating X. The return type will be narrowed in sub traits / classes.
Attributes
- Definition Classes
- Inherited from:
- SimilarPreserve
Mirror, reflection 2D geometric transformation across the X axis by negating y. The return type will be narrowed in sub traits / classes.
Mirror, reflection 2D geometric transformation across the X axis by negating y. The return type will be narrowed in sub traits / classes.
Attributes
- Definition Classes
- Inherited from:
- SimilarPreserve
The optional default value for parameter 1.
The optional default value for parameter 2.
Start point of this curve segment, often called p1
2D Transformation using a ProlignMatrix. The return type will be narrowed in sub classes / traits.
2D Transformation using a ProlignMatrix. The return type will be narrowed in sub classes / traits.
Attributes
- Definition Classes
- Inherited from:
- ProlignPreserve
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:
- SimilarPreserve
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:
- SimilarPreserve
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:
- SimilarPreserve
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:
- SimilarPreserve
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:
- SimilarPreserve
Uniform 2D geometric 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. The Return type will be narrowed in sub traits / classes.
Uniform 2D geometric 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. The Return type will be narrowed in sub traits / classes.
Attributes
- Definition Classes
- Inherited from:
- ProlignPreserve
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:
- AffinePreserve
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:
- AffinePreserve
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:
- AffinePreserve
Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.
Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.
Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.
Attributes
- Inherited from:
- ShowN
Attributes
- Inherited from:
- ShowN
Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem. The Return type will be narrowed in sub traits. End users will often want to use the slate method taking a Pt2 or Vec2 as a parameter, the slateX or the slateY methods. These methods will be offered as extension methods using this method for their implementations.
Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem. The Return type will be narrowed in sub traits. End users will often want to use the slate method taking a Pt2 or Vec2 as a parameter, the slateX or the slateY methods. These methods will be offered as extension methods using this method for their implementations.
Attributes
- Definition Classes
- Inherited from:
- ProlignPreserve
Show with decimal precision of 0 places.
Show with decimal precision of 1 place padding with a zero if necessary.
Show with decimal precision of 1 place padding with a zero if necessary.
Attributes
- Inherited from:
- ShowDec
Show with decimal precision of 2 places padding with zeros if necessary.
Show with decimal precision of 2 places padding with zeros if necessary.
Attributes
- Inherited from:
- ShowDec
Show with decimal precision of 3 places padding with zeros if necessary.
Show with decimal precision of 3 places padding with zeros if necessary.
Attributes
- Inherited from:
- ShowDec
Concrete fields
The X component of the end point of this curve segment. Often called x2 on a line or x4 on a cubic bezier in other APIs.
The X component of the end point of this curve segment. Often called x2 on a line or x4 on a cubic bezier in other APIs.
Attributes
The Y component of the end point of this curve segment. Often called y2 on a line or y4 on a cubic bezier in other APIs.
The Y component of the end point of this curve segment. Often called y2 on a line or y4 on a cubic bezier in other APIs.
Attributes
The X component of the start point of this curve segment often called x1 in other APIs.
The X component of the start point of this curve segment often called x1 in other APIs.
Attributes
Implicits
Implicits
The ShowT type class instance for the 1st element of this 2 element product.
The ShowT type class instance for the 1st element of this 2 element product.
Attributes
- Definition Classes