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 BoundedElemtrait AffinePreservetrait SimilarPreservetrait ProlignPreservetrait PersistNFixedtrait Persist1Plus[Pt2]trait PersistNtrait TellNtrait Telltrait Persisttrait CurveSegtrait Drawabletrait LineLiketrait GeomElemtrait LineSegLikeDbl4[Pt2]trait Dbl4Elemtrait LineSegLikeDblN[Pt2]trait DblNElemtrait LineSegLike[Pt2]trait ValueNElemtrait SpecialTclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
The bounding Rectangle provides an initial exclusion test as to whether the pointer is inside the polygon / shape
The bounding Rectangle provides an initial exclusion test as to whether the pointer is inside the polygon / shape
Attributes
- Definition Classes
Draws this geometric element to produce a GraphElem graphical element, that can be displayed or printed.
Draws this geometric element to produce a GraphElem graphical element, that 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
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
Element 1 of this Tell2+ element product.
Element 2 of this Tell2+ element product.
The type of the object to be persisted.
Inherited methods
Attributes
- Inherited from:
- BoundedElem
The centre of the bounding rectangle. consider also using cenDefault.
The centre of the bounding rectangle. consider also using cenDefault.
Attributes
- Inherited from:
- BoundedElem
Attributes
- Inherited from:
- BoundedElem
The height of the BoundingRect of this object.
The width of the BoundingRect of this object.
Attributes
- Inherited from:
- BoundedElem
If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.
If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.
Attributes
- Inherited from:
- BoundedElem
Utility method to append this as an element to an ArrayBuffer[Double]. End users should rarely need to use this method.
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
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
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
Number of parameter constituents of this class.
Number of parameter constituents of this class.
Attributes
- Definition Classes
- Inherited from:
- Persist2
The optional default value for parameter 1.
The optional default value for parameter 1.
Attributes
- Definition Classes
- Inherited from:
- Tell2Plused
The optional default value for parameter 2.
The optional default value for parameter 2.
Attributes
- Definition Classes
- Inherited from:
- Tell2Plused
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
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:
- Tell
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:
- Tell
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:
- Tell
Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by show method on Show type class instances.
Attributes
- Inherited from:
- TellN
Attributes
- Inherited from:
- BoundedElem
This property determines if the type can be used with Multiple syntax.
This property determines if the type can be used with Multiple syntax.
MyObj * 7
. for describing sequences succinctly. This is not desirable for some types such as numerical and mathematical vector types as this could be confusing 3 * 4 should resolve to an Int of value 12, not a Multiple(3, 4).
Attributes
- Inherited from:
- Persist
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
Attributes
- Definition Classes
Attributes
- Definition Classes