Packages

case class Rect(a: Vec, b: Vec) extends Containable with Closed with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rect
  2. Serializable
  3. Product
  4. Equals
  5. Closed
  6. Shape
  7. Containable
  8. AnyRef
  9. Any
Implicitly
  1. by richDrxAny
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Rect(a: Vec, b: Vec)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def *(s: Double): Rect
  4. def +(r: Vec): Rect
  5. def -(r: Vec): Rect
  6. 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
    @inline()
  7. def /(s: Double): Rect
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. val a: Vec
  10. 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
  11. 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
  12. lazy val area: Double
    Definition Classes
    RectContainable
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. lazy val aspect: Double

    aspect ration w:h => width/height

  15. def axes[A, B](xDomain: Bound[A], yDomain: Bound[B])(implicit ta: Tickable[A], tb: Tickable[B]): Axes[A, B]
  16. val b: Vec
  17. def bottom: Line
  18. def bottomBy(dy: Double): Rect
  19. def bottomTo(y: Double): Rect
  20. lazy val bound: Bound[Vec]
  21. def ceil: Rect
  22. def center: Vec
  23. def centerLine: Line
  24. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  25. def closest(p: Vec): Vec

    point closest including segments

  26. lazy val cm: Vec
  27. def contains(t: Vec): Boolean
    Definition Classes
    RectContainable
  28. lazy val diag: Vec
  29. def draw(implicit g: DrawContext): Unit

    generic draw method

    generic draw method

    Definition Classes
    RectShape
  30. 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
  31. def ensuring(cond: (Rect) => Boolean, msg: => Any): Rect
    Implicit
    This member is added by an implicit conversion from Rect toEnsuring[Rect] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  32. def ensuring(cond: (Rect) => Boolean): Rect
    Implicit
    This member is added by an implicit conversion from Rect toEnsuring[Rect] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  33. def ensuring(cond: Boolean, msg: => Any): Rect
    Implicit
    This member is added by an implicit conversion from Rect toEnsuring[Rect] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  34. def ensuring(cond: Boolean): Rect
    Implicit
    This member is added by an implicit conversion from Rect toEnsuring[Rect] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  35. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  37. def fitIn(that: Rect): Rect
  38. def floor: Rect
  39. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Rect toStringFormat[Rect] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  40. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  41. def hLine(t: Double): Line
  42. lazy val height: Double
  43. def hsplit[A](vs: Iterable[A]): Iterable[(Rect, A)]
  44. def hsplit(p: Double): Vector[Rect]

    hsplit at a ratio

  45. def hsplit(): Vector[Rect]
  46. def hsplit(n: Int): Vector[Rect]
  47. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  48. def left: Line
  49. def leftBy(dx: Double): Rect
  50. def leftTo(x: Double): Rect
  51. def midLine: Line
  52. def mobius(v: Vec): Vec
  53. def moveTo(pos: Vec): Rect
  54. def ne: Vec
  55. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  56. 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
  57. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  58. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  59. def nw: Vec
  60. 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
  61. def pad(v: Double, align: AlignVertical): Rect
  62. def pad(v: Double, align: AlignHorizontal): Rect
  63. 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

  64. def poly: Poly
  65. 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
  66. def productElementNames: Iterator[String]
    Definition Classes
    Product
  67. def rect: Rect

    rectangular bounding box

    rectangular bounding box

    Definition Classes
    RectContainable
  68. def right: Line
  69. def rightBy(dx: Double): Rect
  70. def rightTo(x: Double): Rect
  71. def round: Rect
  72. def sample(dA: Double): Iterable[Vec]

    sample a dA (sample area size)

    sample a dA (sample area size)

    Definition Classes
    RectContainable
  73. def scaleTo(that: Rect): Rect
  74. def se: Vec
  75. def side(prop: Property): Line
  76. 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
  77. lazy val size: Vec
  78. 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
  79. def split(N: Int, aspectRatioGoal: Ratio): Vector[Rect]
  80. def split(m: Int, n: Int): Vector[Rect]

    split m rows an n cols

  81. def split[A](vs: Iterable[A]): Iterable[(Rect, A)]
  82. def split(): Vector[Rect]
  83. def split(n: Int): Vector[Rect]

    landscape => vsplit, else portrait => hsplit

  84. def splitToRect(N: Int, aspectRatio: Double = Rect.goldenRatio): Vector[Rect]
  85. def splitToSquares(N: Int): Vector[Rect]
  86. def sw: Vec
  87. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  88. 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
    RectContainable
  89. 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
    RectContainable
  90. 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
  91. def toAwt: Rectangle
  92. lazy val toPoly: Poly
  93. def top: Line
  94. def topBy(dy: Double): Rect
  95. def topTo(y: Double): Rect
  96. def vLine(t: Double): Line
  97. lazy val vertices: List[Vec]
  98. 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)

  99. def vsplit(p: Double): Vector[Rect]

    vsplit at a ratio

  100. def vsplit(): Vector[Rect]
  101. def vsplit(n: Int): Vector[Rect]
  102. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  103. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  104. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  105. lazy val width: Double
  106. lazy val xBound: Bound[Double]
  107. lazy val yBound: Bound[Double]
  108. 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)

    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)

    Definition Classes
    ClosedShape
  109. def ~(property: Property): Styled

    initialize shape with a style

    initialize shape with a style

    Definition Classes
    Shape
  110. def ~(style: Style): Styled

    Attach a style to a shape

    Attach a style to a shape

    Definition Classes
    Shape

Shadowed Implicit Value Members

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

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

  2. def e: Line
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use right

  3. def n: Line
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use top

  4. def s: Line
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use bottom

  5. def w: Line
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use left

  6. 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)

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

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Closed

Inherited from Shape

Inherited from Containable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion richDrxAny fromRect to DrxAny[Rect]

Inherited by implicit conversion any2stringadd fromRect to any2stringadd[Rect]

Inherited by implicit conversion StringFormat fromRect to StringFormat[Rect]

Inherited by implicit conversion Ensuring fromRect to Ensuring[Rect]

Inherited by implicit conversion ArrowAssoc fromRect to ArrowAssoc[Rect]

Ungrouped