Square

object Square extends ShapeIcon

Companion object for the Square trait. However its apply methods delegate to the SquareImp implementation class.

Companion
class
trait ShapeIcon
class Object
trait Matchable
class Any

Type members

Classlikes

final class SquareImp(val sd2CenX: Double, val sd2CenY: Double, val sd4CenX: Double, val sd4CenY: Double) extends Square with RectS2S4

The class for a generalised square. If you want a square aligned XY axes use Sqlign. The square can be translated, scaled, reflected and rotated while remaining a Square.

The class for a generalised square. If you want a square aligned XY axes use Sqlign. The square can be translated, scaled, reflected and rotated while remaining a Square.

Companion
object
object SquareImp

Factory object for squares.

Factory object for squares.

Companion
class

Types

override type ShapeT = Sqlign

Value members

Concrete methods

def apply(width: Double, rotation: AngleVec, cen: Pt2): Square
def apply(width: Double, rotation: AngleVec, xCen: Double, yCen: Double): Square
override def fill(colour: Colour): ShapeGraphicIcon
Definition Classes
override def reify(scale: Double, xCen: Double, yCen: Double): Sqlign

Scale the Square and position (translate) it. This method is equivalent to scaling the icon and then translating (repositioning) it.

Scale the Square and position (translate) it. This method is equivalent to scaling the icon and then translating (repositioning) it.

Definition Classes
override def reify(scale: Double, cen: Pt2): Sqlign

Scale the Shape and position (translate) it. This method is equivalent to scaling the icon and then translating (repositioning) it.

Scale the Shape and position (translate) it. This method is equivalent to scaling the icon and then translating (repositioning) it.

Definition Classes
def s2s4(s2Cen: Pt2, s4Cen: Pt2): Square