PolygonGraphic

A Polygon based graphic. If you just want a general polygon as opposed to specifically specified Polygons such as Rectangle, Square or Triangle use the implementation class PolygonCompound.

Companion
object
trait GeomElem
class Object
trait Matchable
class Any

Value members

Abstract methods

override def negX: PolygonGraphic

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Definition Classes
override def negY: PolygonGraphic

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Definition Classes
override def prolign(matrix: ProlignMatrix): PolygonGraphic
Definition Classes
override def reflect(lineLike: LineLike): PolygonGraphic
Definition Classes
override def rotate(angle: AngleVec): PolygonGraphic
Definition Classes
override def rotate90: PolygonGraphic
Definition Classes
override def scale(operand: Double): PolygonGraphic

Uniform 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.

Uniform 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.

Definition Classes
override def scaleXY(xOperand: Double, yOperand: Double): PolygonGraphic
Definition Classes
override def shape: Polygon
Definition Classes
override def shearX(operand: Double): PolygonGraphic
Definition Classes
override def shearY(operand: Double): PolygonGraphic
Definition Classes
override def slateXY(xDelta: Double, yDelta: Double): PolygonGraphic

Translate geometric transformation.

Translate geometric transformation.

Definition Classes

Concrete methods

Definition Classes
@inline
def foreachVert(f: Pt2 => Unit): Unit
def ifv2: Boolean

Checks for 2 or more vertices

Checks for 2 or more vertices

def ifv3: Boolean

Checks for 3 or more vertices

Checks for 3 or more vertices

override def svgElem(bounds: BoundingRect): SvgElem
Definition Classes
@inline
def vertsMap[A, ArrT <: ArrImut[A]](f: Pt2 => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT
def vertsNum: Int

The number of vertices.

The number of vertices.

def x1: Double
def xVertsArray: Array[Double]
def y1: Double
def yVertsArray: Array[Double]

Inherited methods

Inherited from
ShapeGraphic
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
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

Renders this functional immutable GraphicElem, using the imperative methods of the abstract pCanv.CanvasPlatform interface.

Renders this functional immutable GraphicElem, using the imperative methods of the abstract pCanv.CanvasPlatform interface.

Inherited from
GraphicElem
Inherited from
ShapeGraphic
final def svgInline: String
Inherited from
ShapeGraphic
final def svgJustElem: SvgElem
Inherited from
ShapeGraphic
def svgOut(indent: Int, linePosn: Int, lineLen: Int): String
Inherited from
ShapeGraphic
def svgStr: String
Inherited from
ShapeGraphic
Inherited from
BoundedElem
Inherited from
BoundedElem