ShapeLen2

ostrat.geom.ShapeLen2
trait ShapeLen2 extends FillableLen2

A closed shape specified in Length units.

Attributes

Graph
Supertypes
trait FillableLen2
trait DrawableLen2
trait GeomLen2Elem
class Any
Known subtypes
trait EllipseLen2
class CircleLen2
trait PolygonLen2[VT]
class PolygonKm2
trait PolygonLen2P3[VT]
trait PolygonLen2P4[VT]
trait PolygonM2P4
trait QuadM2
trait RectangleM2
trait RectM2
class SqlignM2
trait QuadLen2[VT]
trait RectangleLen2[VT]
trait RectLen2[VT]
trait SqlignLen2[VT]
trait SquareLen2[VT]
trait PolygonM2P3
class TriangleM2
trait TriangleLen2[VT]
trait PolygonM2
class PolygonM2Gen
class PolygonPm2
Show all

Members list

Value members

Abstract methods

override def mapGeom2(operand: Length): Shape

Divides by a Length to produce an equivalent Aff2Elem without Length units.

Divides by a Length to produce an equivalent Aff2Elem without Length units.

Attributes

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

Uniform 2 Length dimension geometric scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. The Return type will be narrowed in sub traits / classes.

Uniform 2 Length dimension geometric scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
override def slate(operand: VecPtLen2): ShapeLen2

Translate 2 Length dimension geometric transformation GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload taking the X and Y Deltas as separate parameters, slateX and slateY methods are also available.

Translate 2 Length dimension geometric transformation GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload taking the X and Y Deltas as separate parameters, slateX and slateY methods are also available.

Attributes

Definition Classes
override def slate(xOperand: Length, yOperand: Length): ShapeLen2

Translate 2 Length dimension geometric transformation, taking the xDelta and yDelta as parameters on this GeomLen2Elem returning a GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload method taking a Pt2 or Vec2 as a parameter, slateX and slateY methods are also available.

Translate 2 Length dimension geometric transformation, taking the xDelta and yDelta as parameters on this GeomLen2Elem returning a GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload method taking a Pt2 or Vec2 as a parameter, slateX and slateY methods are also available.

Attributes

Definition Classes
override def slateX(xOperand: Length): ShapeLen2

Translate 2 Length dimension geometric transformation in the X dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.

Translate 2 Length dimension geometric transformation in the X dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.

Attributes

Definition Classes
override def slateY(yOperand: Length): ShapeLen2

Translate 2 Length dimension geometric transformation in the Y dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.

Translate 2 Length dimension geometric transformation in the Y dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.

Attributes

Definition Classes

Inherited and Abstract methods

def draw(lineWidth: Double, lineColour: Colour): GraphicLen2Elem

Draws the object. The line width is defined in pixels.

Draws the object. The line width is defined in pixels.

Attributes

Inherited from:
DrawableLen2
def fill(fillFacet: FillFacet): GraphicLen2Elem

Graphically fills this object.

Graphically fills this object.

Attributes

Inherited from:
FillableLen2
def fillDraw(fillFacet: FillFacet, lineColour: Colour, lineWidth: Double): GraphicLen2Elem

Graphically fills and draws this object.

Graphically fills and draws this object.

Attributes

Inherited from:
FillableLen2