AffinePreserve
A class that can transform itself in 2d geometry and can preserve its type across all affine transformations. This is a key trait, the object can be transformed in 2 dimensional space. Leaf classes must implement the single method fTrans(f: Vec2 => Vec2): T. The related trait TransDistable does the same for fTrans(f: Dist2 => Dist2): T.
Attributes
- Graph
-
- Supertypes
- Known subtypes
-
class Bezierclass CurveTailclass DashedLineDrawtrait GraphicAffineElemclass BezierDrawtrait GraphicBoundedAffinetrait GraphicParentFullclass PolyCurveParentFulltrait PolyCurveActiveclass PolyCurveAllOldtrait PolyCurveElemclass PolyCurveDrawclass PolyCurveFillclass PolyCurveFillDrawclass PolyCurveFillDrawTextclass LinePathDrawclass LinesDrawclass PolygonActiveclass TextFixedclass TextOutlineclass LinePathclass LineSegclass LineSegArrclass LineSegDrawclass PolyCurveCentredclass PolygonGenclass Pt2Arrclass ShapeGenOldclass TriangleImpShow all
Members list
Type members
Types
The most narrow type preserved in some 2d geometric transformations.
The most narrow type preserved in some 2d geometric transformations.
Attributes
Value members
Concrete methods
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
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
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 methods
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
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
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
- 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
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