Shape

trait Shape extends Fillable with BoundedElem

A closed shape. It has vertices and the vertices are connected by straight lines or curved lines. Shape does not extend CurvePath but it does extend Fillable which extends Drawable.Not sure if Shape and Fillable should be seperate classes.

Companion
object
trait Fillable
trait Drawable
trait GeomElem
class Object
trait Matchable
class Any

Value members

Abstract methods

def draw(lineColour: Colour, lineWidth: Double): ShapeDraw
override def fill(fillColour: Colour): ShapeFill
Definition Classes
override def fillInt(intValue: Int): ShapeFill
Definition Classes
override def negX: Shape

Mirror, reflection 2D geometric transformation across the X axis on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Mirror, reflection 2D geometric transformation across the X axis on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Definition Classes
override def negY: Shape

Mirror, reflection 2D geometric transformation across the X axis on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Mirror, reflection 2D geometric transformation across the X axis on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Definition Classes
override def prolign(matrix: ProlignMatrix): Shape

2D Transformation using a ProlignMatrix on a Shape, returns a Shape. The Return type will be narrowed in sub traits / classes.

2D Transformation using a ProlignMatrix on a Shape, returns a Shape. The Return type will be narrowed in sub traits / classes.

Definition Classes
override def reflect(lineLike: LineLike): Shape

Reflect 2D geometric transformation across a line, line segment or ray on a Shape, returns a Shape. The Return type will be narrowed in sub traits / classes.

Reflect 2D geometric transformation across a line, line segment or ray on a Shape, returns a Shape. The Return type will be narrowed in sub traits / classes.

Definition Classes
override def rotate(angle: AngleVec): Shape

Rotation 2D geometric transformation on a Shape taking the rotation as a scalar measured in radians, returns a Shape. The Return type will be narrowed in sub traits / classes.

Rotation 2D geometric transformation on a Shape taking the rotation as a scalar measured in radians, returns a Shape. The Return type will be narrowed in sub traits / classes.

Definition Classes
override def rotate180: Shape
Definition Classes
override def rotate270: Shape
Definition Classes
override def rotate90: Shape
Definition Classes
override def scale(operand: Double): Shape

Uniform scaling 2D geometric transformation on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes. Use the xyScale method for differential scaling on the X and Y axes.

Uniform scaling 2D geometric transformation on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes. Use the xyScale method for differential scaling on the X and Y axes.

Definition Classes
override def scaleXY(xOperand: Double, yOperand: Double): Shape

XY scaling 2D geometric transformation on a Shape returns a Shape. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits.

XY scaling 2D geometric transformation on a Shape returns a Shape. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits.

Definition Classes
override def shearX(operand: Double): Shape

Shear 2D geometric transformation along the X Axis on a Shape, returns a Shape. The return type will be narrowed in sub classes and traits.

Shear 2D geometric transformation along the X Axis on a Shape, returns a Shape. The return type will be narrowed in sub classes and traits.

Definition Classes
override def shearY(operand: Double): Shape

Shear 2D geometric transformation along the Y Axis on a Shape, returns a Shape. The return type will be narrowed in sub classes and traits.

Shear 2D geometric transformation along the Y Axis on a Shape, returns a Shape. The return type will be narrowed in sub classes and traits.

Definition Classes
override def slateXY(xDelta: Double, yDelta: Double): Shape

Translate 2D geometric transformation on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Translate 2D geometric transformation on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Definition Classes

Concrete methods

def canEqual(that: Any): Boolean

This canEqual override allow the comparison of Shapes.

This canEqual override allow the comparison of Shapes.

Inherited methods

Inherited from
BoundedElem
@inline
final def boundCen: Pt2

The centre of the bounding rectangle. consider also using cenDefault.

The centre of the bounding rectangle. consider also using cenDefault.

Inherited from
BoundedElem
def boundingHeight: Double
Inherited from
BoundedElem

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

Inherited from
BoundedElem
def boundingWidth: Double

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Inherited from
BoundedElem
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.

Inherited from
BoundedElem
def fillDraw(fillColour: Colour, lineColour: Colour, lineWidth: Double): GraphicElem

Returns a fill and draw graphic of this geometric object.

Returns a fill and draw graphic of this geometric object.

Inherited from
Fillable
Inherited from
BoundedElem
Inherited from
BoundedElem