Rect

ostrat.geom.Rect
See theRect companion trait
object Rect

Companion object for the Rect trait contains factory methods for the Rect trait which delegate to the RectGen class.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Rect.type

Members list

Type members

Classlikes

final class RectGen(val v0x: Double, val v0y: Double, val v1x: Double, val v1y: Double, val v2x: Double, val v2y: Double) extends Rect

General implementation class for Rect, a rectangle aligned to the X and Y axes.

General implementation class for Rect, a rectangle aligned to the X and Y axes.

Attributes

Companion
object
Supertypes
trait Rect
trait Rectangle
trait Polygon4Plus
trait Polygon3Plus
trait Polygon
trait PolygonBase[Pt2]
trait VertSeqSpec[Pt2]
trait SeqSpec[Pt2]
trait SeqLike[Pt2]
trait Approx[Double]
trait Equals
trait ShapeCentred
trait CentredElem
trait WithCentre
trait Shape
trait BoundedElem
trait Fillable
trait Drawable
trait Aff2Elem
trait Simil2Elem
trait Axlign2Elem
class Object
trait Matchable
class Any
Show all
object RectGen

Companion object for the Rect.RectGen class.

Companion object for the Rect.RectGen class.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
RectGen.type

Value members

Concrete methods

def apply(width: Double, height: Double, cen: Pt2): Rect

Factory apply method for a rectangle aligned with the X and Y axes. Default height is 1 and default centre point is at x = 0, y = 0. There is a name overload that takes the X and Y centre coordinates as Doubles.

Factory apply method for a rectangle aligned with the X and Y axes. Default height is 1 and default centre point is at x = 0, y = 0. There is a name overload that takes the X and Y centre coordinates as Doubles.

Attributes

def apply(width: Double, height: Double, cenX: Double, cenY: Double): Rect

Factory apply method for a rectangle aligned with the X and Y axes. There is a name overload that has a default height of 1 and takes a Pt2 centre point parameter wth a default of x = 0, y = 0.

Factory apply method for a rectangle aligned with the X and Y axes. There is a name overload that has a default height of 1 and takes a Pt2 centre point parameter wth a default of x = 0, y = 0.

Attributes

def bCen(width: Double, height: Double, bottomCentre: Pt2): Rect

Factory method for Rect from width, height and the bottomCentre position parameters. The default position for the bottomCentre parameter places the bottom centre of the Rect at the origin.

Factory method for Rect from width, height and the bottomCentre position parameters. The default position for the bottomCentre parameter places the bottom centre of the Rect at the origin.

Attributes

def bl(width: Double, height: Double, bottomLeft: Pt2): Rect

Factory method for Rect from width, height and the bottomLeft position parameters. The default position for the bottomLeft parameter places the bottom left vertex of the Rect at the origin.

Factory method for Rect from width, height and the bottomLeft position parameters. The default position for the bottomLeft parameter places the bottom left vertex of the Rect at the origin.

Attributes

def bl(width: Double, height: Double, xBL: Double, yBL: Double): Rect

Factory method for Rect from width, height and the bottomLeft position parameters. The default position for the bottomLeft parameter places the bottom left vertex of the Rect at the origin.

Factory method for Rect from width, height and the bottomLeft position parameters. The default position for the bottomLeft parameter places the bottom left vertex of the Rect at the origin.

Attributes

def bounding(inp: Arr[_]): Rect
def br(width: Double, height: Double, bottomRight: Pt2): Rect

Factory method for Rect from width, height and the topLeft position parameters. The default position for the bottomRight parameter places the bottom right vertex of the Rect at the origin.

Factory method for Rect from width, height and the topLeft position parameters. The default position for the bottomRight parameter places the bottom right vertex of the Rect at the origin.

Attributes

def cenV0(cen: Pt2, v0: Pt2): Rect

Factory method to create a Rect from the centre point and the v0 point. The v0 point or vertex is y convention the top left vertex of the rectangle, but any of the 4 corner vertices will give the correct constructor values.

Factory method to create a Rect from the centre point and the v0 point. The v0 point or vertex is y convention the top left vertex of the rectangle, but any of the 4 corner vertices will give the correct constructor values.

Attributes

def colouredBordered(height: Double, colour: Colour, lineWidth: Double): PolygonCompound
def cross(width: Double, height: Double, barWidth: Double): RArr[Polygon]
def fromArray(array: Array[Double]): Rect

Creates a Rect from an Array[Double]

Creates a Rect from an Array[Double]

Attributes

def goldenRatio(height: Double): Rectangle
def lrbt(left: Double, right: Double, bottom: Double, top: Double): Rect

Construct a Rect from the left, right, bottom and top values."

Construct a Rect from the left, right, bottom and top values."

Attributes

def tl(width: Double, height: Double, topLeft: Pt2): Rect

Factory method for Rect from width, height and the topLeft position parameters. The default position for the topLeft parameter places the top left vertex of the Rect at the origin.

Factory method for Rect from width, height and the topLeft position parameters. The default position for the topLeft parameter places the top left vertex of the Rect at the origin.

Attributes

def tl(width: Double, height: Double, xTopLeft: Double, yTopLeft: Double): Rect

Factory method for Rect from width, height and the topLeft position parameters.

Factory method for Rect from width, height and the topLeft position parameters.

Attributes

def tr(width: Double, height: Double, topRight: Pt2): Rect

Factory method for Rect from width, height and the topRight position parameters. The default position for the topLeft parameter places the top right vertex of the Rect at the origin.

Factory method for Rect from width, height and the topRight position parameters. The default position for the topLeft parameter places the top right vertex of the Rect at the origin.

Attributes

Givens

Givens

Implicit Prolign type class instance / evidence for Rect.

Implicit Prolign type class instance / evidence for Rect.

Attributes

given scaleEv: Scale[Rect]

Implicit Scale type class instance / evidence for Rect.

Implicit Scale type class instance / evidence for Rect.

Attributes

given slate2Ev: Slate2[Rect]

Implicit Slate2 type class instance / evidence for Rect.

Implicit Slate2 type class instance / evidence for Rect.

Attributes

Implicit TransAxes type class instance / evidence for Rect.

Implicit TransAxes type class instance / evidence for Rect.

Attributes

Implicits

Implicits

implicit lazy val defaultEv: DefaultValue[Rect]

The implicit DefaultValue type class instance / evidence for Rect is the NoBounds object.

The implicit DefaultValue type class instance / evidence for Rect is the NoBounds object.

Attributes