case class Rect(a: Vec, b: Vec) extends Containable with Closed with Product with Serializable
- Source
- geom.scala
- Alphabetic
- By Inheritance
- Rect
- Serializable
- Product
- Equals
- Closed
- Shape
- Containable
- AnyRef
- Any
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *(s: Double): Rect
- def +(r: Vec): Rect
- def -(r: Vec): Rect
- def ->[B](y: B): (Rect, B)
- def /(s: Double): Rect
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val a: Vec
- def applyIf(t: Boolean, f: (Rect) => Rect): Rect
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Rect) => Boolean)(f: (Rect) => Rect): Rect
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- lazy val area: Double
- Definition Classes
- Rect → Containable
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val aspect: Double
aspect ration w:h => width/height
- def axes[A, B](xDomain: Bound[A], yDomain: Bound[B])(implicit ta: Tickable[A], tb: Tickable[B]): Axes[A, B]
- val b: Vec
- def bottom: Line
- def bottomBy(dy: Double): Rect
- def bottomTo(y: Double): Rect
- lazy val bound: Bound[Vec]
- def ceil: Rect
- def center: Vec
- def centerLine: Line
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closest(p: Vec): Vec
point closest including segments
- lazy val cm: Vec
- def contains(t: Vec): Boolean
- Definition Classes
- Rect → Containable
- lazy val diag: Vec
- def draw(implicit g: DrawContext): Unit
generic draw method
- def elementOf(xs: Set[Rect]): Boolean
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Rect) => Boolean, msg: => Any): Rect
- def ensuring(cond: (Rect) => Boolean): Rect
- def ensuring(cond: Boolean, msg: => Any): Rect
- def ensuring(cond: Boolean): Rect
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fitIn(that: Rect): Rect
- def floor: Rect
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hLine(t: Double): Line
- lazy val height: Double
- def hsplit[A](vs: Iterable[A]): Iterable[(Rect, A)]
- def hsplit(p: Double): Vector[Rect]
hsplit at a ratio
- def hsplit(): Vector[Rect]
- def hsplit(n: Int): Vector[Rect]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def left: Line
- def leftBy(dx: Double): Rect
- def leftTo(x: Double): Rect
- def midLine: Line
- def mobius(v: Vec): Vec
- def moveTo(pos: Vec): Rect
- def ne: Vec
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (Rect) => Boolean): Option[Rect]
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def nw: Vec
- def optionIf(f: (Rect) => Boolean): Option[Rect]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def pad(v: Double, align: AlignVertical): Rect
- def pad(v: Double, align: AlignHorizontal): Rect
- def pad(v: Double): Rect
expand/shrink a shape by a level.
expand/shrink a shape by a level. +offset: makes a larger shape -offset: makes a smaller rect keywords: pad, margin, padding, border, expand, reduce
- def poly: Poly
- def preApply[B](f: (Rect) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def rect: Rect
rectangular bounding box
rectangular bounding box
- Definition Classes
- Rect → Containable
- def right: Line
- def rightBy(dx: Double): Rect
- def rightTo(x: Double): Rect
- def round: Rect
- def sample(dA: Double): Iterable[Vec]
sample a dA (sample area size)
sample a dA (sample area size)
- Definition Classes
- Rect → Containable
- def scaleTo(that: Rect): Rect
- def se: Vec
- def side(prop: Property): Line
- def sideEffect(f: (Rect) => Unit): Rect
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- lazy val size: Vec
- def someIf(f: (Rect) => Boolean): Option[Rect]
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def split(N: Int, aspectRatioGoal: Ratio): Vector[Rect]
- def split(m: Int, n: Int): Vector[Rect]
split m rows an n cols
- def split[A](vs: Iterable[A]): Iterable[(Rect, A)]
- def split(): Vector[Rect]
- def split(n: Int): Vector[Rect]
landscape => vsplit, else portrait => hsplit
- def splitToRect(N: Int, aspectRatio: Double = Rect.goldenRatio): Vector[Rect]
- def splitToSquares(N: Int): Vector[Rect]
- def sw: Vec
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(N: Int): Iterable[Vec]
take N points from the rectangle area where N = n*m and n = m*aspect
take N points from the rectangle area where N = n*m and n = m*aspect
- Definition Classes
- Rect → Containable
- def take(m: Int, n: Int): Iterable[Vec]
take points with m-rows and n-columns
take points with m-rows and n-columns
- Definition Classes
- Rect → Containable
- val thisAny: Rect
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def toAwt: Rectangle
- lazy val toPoly: Poly
- def top: Line
- def topBy(dy: Double): Rect
- def topTo(y: Double): Rect
- def vLine(t: Double): Line
- lazy val vertices: List[Vec]
- def vsplit[A](vs: Iterable[A]): Iterable[(Rect, A)]
auto split and zip plus round since most often used for size by size pixel viz (note: requires a .size call)
- def vsplit(p: Double): Vector[Rect]
vsplit at a ratio
- def vsplit(): Vector[Rect]
- def vsplit(n: Int): Vector[Rect]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- lazy val width: Double
- lazy val xBound: Bound[Double]
- lazy val yBound: Bound[Double]
- def ~(color: Color): Styled
provide a quick automatic way to set a fill or stroke all shapes have a stroke even if they can be filled (but the ClosedShape overrides this to provide a fill color)
- def ~(property: Property): Styled
initialize shape with a style
initialize shape with a style
- Definition Classes
- Shape
- def ~(style: Style): Styled
Attach a style to a shape
Attach a style to a shape
- Definition Classes
- Shape
Shadowed Implicit Value Members
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from Rect toany2stringadd[Rect] performed by method any2stringadd in scala.Predef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(rect: any2stringadd[Rect]).+(other)
- Definition Classes
- any2stringadd
Deprecated Value Members
- def ?>(f: (Rect) => Boolean): Option[Rect]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def e: Line
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use right
- def n: Line
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use top
- def s: Line
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use bottom
- def w: Line
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use left
- def |>[B](f: (Rect) => B): B
- Implicit
- This member is added by an implicit conversion from Rect toDrxAny[Rect] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (Rect, B)
- Implicit
- This member is added by an implicit conversion from Rect toArrowAssoc[Rect] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.