PolygonDraw

Immutable Graphic element that defines and draws a Polygon.

Companion
object
trait CanvElem
trait ShapeDraw
trait GeomElem
class Object
trait Matchable
class Any

Value members

Concrete methods

override

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Definition Classes
override

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Definition Classes
override

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

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

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Definition Classes
override
Definition Classes
override

Mirror, rotate(radians) transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Mirror, rotate(radians) transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

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

Uniform scaling transformation a PolygonDraw, returns a PolygonDraw.

Uniform scaling transformation a PolygonDraw, returns a PolygonDraw.

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

Independent X and Y dimension scaling upon a PolygonDraw returns a PolygonDraw.

Independent X and Y dimension scaling upon a PolygonDraw returns a PolygonDraw.

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

Shear along the X axis upon a PolygonDraw returns a PolygonDraw.

Shear along the X axis upon a PolygonDraw returns a PolygonDraw.

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

Shear along the Y axis upon a PolygonDraw returns a PolygonDraw.

Shear along the Y axis upon a PolygonDraw returns a PolygonDraw.

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

Translate geometric transformation on a PolygonDraw, returns a PolygonDraw.

Translate geometric transformation on a PolygonDraw, returns a PolygonDraw.

Definition Classes

Inherited methods

final override
Definition Classes
Inherited from
ShapeGraphicSimple
Inherited from
BoundedElem
@inline
final

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
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
@inline
def foreachVert(f: Pt2 => Unit): Unit
Inherited from
PolygonGraphic
def ifv2: Boolean

Checks for 2 or more vertices

Checks for 2 or more vertices

Inherited from
PolygonGraphic
def ifv3: Boolean

Checks for 3 or more vertices

Checks for 3 or more vertices

Inherited from
PolygonGraphic

The line colour of this draw graphic.

The line colour of this draw graphic.

Inherited from
ShapeDraw
def lineWidth: Double

The line width of this draw graphic

The line width of this draw graphic

Inherited from
ShapeDraw
override
Definition Classes
Inherited from
ShapeDraw
override
Definition Classes
Inherited from
PolygonGraphic
Inherited from
ShapeGraphic
override
final
def svgInline: String
Inherited from
ShapeGraphic
final
Inherited from
ShapeGraphic
def svgOut(indent: Int, linePosn: Int, lineLen: Int): String
Inherited from
ShapeGraphic
def svgStr: String
Inherited from
PolygonGraphicSimple
Inherited from
BoundedElem
Inherited from
BoundedElem
@inline
def vertsMap[A, ArrT <: ArrBase[A]](f: Pt2 => A)(implicit build: ArrBuilder[A, ArrT]): ArrT
Inherited from
PolygonGraphic
def vertsNum: Int

The number of vertices.

The number of vertices.

Inherited from
PolygonGraphic
def x1: Double
Inherited from
PolygonGraphic
def xVertsArray: Array[Double]
Inherited from
PolygonGraphic
def y1: Double
Inherited from
PolygonGraphic
def yVertsArray: Array[Double]
Inherited from
PolygonGraphic