Aff2Elem

ostrat.geom.Aff2Elem
See theAff2Elem companion object
trait Aff2Elem extends Simil2Elem

A 2D geometric element to which 2D geometric transformations can be applied. Not all elements preserve their full properties under all transformations. So for example a Circle is no longer a Circle after a Shear transformation, but remains an Ellipse. Graphic2Elem inherits from GeomElem. A Circle is not a Graphic2Elem but if we add a fill colour to make a CircleFill, or a line width and line colour to it, we have a Graphic2Elem a graphical element that can be displayed on a canvas or output to SVG. It is expected that all elements that inherit from GeomElem that are not Graphic2Elems will be Drawable elements, but this has not been finalised.

Attributes

Companion
object
Graph
Supertypes
trait Simil2Elem
trait Axlign2Elem
class Any
Known subtypes
trait AxisFree
class CArcDraw
class Circle
class EllipseGen
class ShapeGen
class TriangleEqui
trait CurveSegDraw
class BezierDraw
trait EArcDraw
class EArcDrawImp
class LSeg2Draw
trait Drawable
trait CurveSeg
class Bezier
trait EArc
class EArcImp
trait EArclign
class CArc
class EArclignImp
class LSeg2
trait Fillable
trait Shape
trait Polygon
trait Polygon3Plus
trait Polygon4Plus
trait Polygon5Plus
trait Polygon6Plus
class DoDeclign
trait HexReg
class HexRegImp
trait Hexlign
class HexParrX
class HexParrY
class Trapezium
trait Rectangle
trait PhiRectangle
trait PhiRect
class PhiRectHigh
class PhiRectWide
trait Rect
object NoBounds
class RectGen
class Sqlign
class RectangleGen
trait Square
class SquareGen
trait Triangle
class TriangleGen
trait TriangleIsos
class PolygonGen
trait ShapeCentred
trait Ellipse
trait Ellipselign
trait RectStad
trait ShapeSegs
class LSeg2Arr
trait EllipseBased
class CircleActive
class CircleDraw
class CircleFill
trait EllipseDraw
trait EllipseFill
trait PolygonDraw
trait RectDraw
class RectDrawImp
trait PolygonFill
trait RectFill
class RectFillImp
class SqlignFill
trait SquareFill
class TriangleFill
trait ShapeDraw
trait ShapeFill
trait LineLike
trait Line
class XLine
class XParallel
object XAxis
object YAxis
trait XorYAxis
class YLine
class YParallel
class Ray
trait QuadCompound
trait RectCompound
object GridGraphic1
class CurveTailOld
class LSeg2ArrDraw
class LinePathDraw
class TextFixed
class TextOutline
class LinePath
class Pt2Arr
class ShapeGenOld
trait TextGraphic
class Textlign
trait VecPt2
class Pt2
class Vec2
Show all

Members list

Value members

Abstract methods

override def negX: Aff2Elem

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
override def negY: Aff2Elem

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
override def prolign(matrix: AxlignMatrix): Aff2Elem

2D Transformation using a AxlignMatrix. The return type will be narrowed in subclasses / traits.

2D Transformation using a AxlignMatrix. The return type will be narrowed in subclasses / traits.

Attributes

Definition Classes
def reflect(lineLike: LineLike): Aff2Elem

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

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

Attributes

override def rotate(rotation: AngleVec): Aff2Elem

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

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

Attributes

Definition Classes
override def rotate180: Aff2Elem

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

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

Attributes

Definition Classes
override def rotate270: Aff2Elem

Rotation positive or anti-clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses 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 subclasses and traits.

Attributes

Definition Classes
override def rotate90: Aff2Elem

Rotation positive or anti-clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses 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 subclasses and traits.

Attributes

Definition Classes
override def scale(operand: Double): Aff2Elem

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
def scaleXY(xOperand: Double, yOperand: Double): Aff2Elem

Scaling X and Y axes independently, 2D geometric transformation on this Aff2Elem, returns a new Aff2Elem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in subclasses 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 Aff2Elem, returns a new Aff2Elem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in subclasses and traits. This is an affine transformation, but it is not a similar transformation.

Attributes

def shearX(operand: Double): Aff2Elem

Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in subclasses 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 subclasses and traits. This is an affine transformation, but it is not a similar transformation.

Attributes

def shearY(operand: Double): Aff2Elem

Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in subclasses 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 subclasses and traits. This is an affine transformation, but it is not a similar transformation.

Attributes

override def slate(operand: VecPt2): Aff2Elem

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
override def slate(xOperand: Double, yOperand: Double): Aff2Elem

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
override def slateX(operand: Double): Aff2Elem

Translate 2D geometric transformation in the X dimension, returning a GeomElem. The Return type will be narrowed in sub traits.

Translate 2D geometric transformation in the X dimension, returning a GeomElem. The Return type will be narrowed in sub traits.

Attributes

Definition Classes
override def slateY(operand: Double): Aff2Elem

Translate 2D geometric transformation in the Y dimension, returning a GeomElem. The Return type will be narrowed in sub traits.

Translate 2D geometric transformation in the Y dimension, returning a GeomElem. The Return type will be narrowed in sub traits.

Attributes

Definition Classes