Rectangle

object Rectangle

Companion object fot the Rectangle trait. Contains Rectangle.RectangleImp the implementation class for non specialised rectangles. It also contains various factory methods that delegate to the Rectangle.RectangleImp class.

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

final
class RectangleImp(val sd2CenX: Double, val sd2CenY: Double, val sd4CenX: Double, val sd4CenY: Double, val width2: Double) extends RectS2S4

A rectangle class that has position and may not be aligned to the X and Y axes.

A rectangle class that has position and may not be aligned to the X and Y axes.

Companion
object
Companion
class

Value members

Concrete methods

def apply(width: Double, height: Double, rotation: AngleVec, cen: Pt2): Rectangle
def curvedCorners(width: Double, height: Double, radius: Double, cen: Pt2): ShapeGenOld
def curvedCornersCentred(width: Double, height: Double, radius: Double, posn: Pt2): PolyCurveCentred
def curvedGoldenRatio(height: Double, radius: Double, posn: Pt2): ShapeGenOld
def curvedGoldenRatioCentred(height: Double, radius: Double, posn: Pt2): PolyCurveCentred
def fromAxis(centreLine: LineSeg, height: Double): PolygonGen
def s2s4v1(s2Cen: Pt2, s4Cen: Pt2, v1: Pt2): Rectangle
def sd2sd4(sd2Cen: Pt2, sd4Cen: Pt2, height: Double): Rectangle