Packages

object Rect extends Serializable

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rect
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class RectImp(width: Double, height: Double, xCen: Double, yCen: Double) extends Rect with Product with Serializable

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(width: Double, height: Double, xCen: Double, yCen: Double): Rect
  5. def apply(width: Double, height: Double, cen: Vec2 = Vec2Z): Rect
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def bCen(width: Double, height: Double, bottomCentre: Vec2 = Vec2Z): Rect

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

    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.

  8. def bl(width: Double, height: Double, bottomLeft: Vec2 = Vec2Z): Rect

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

    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.

  9. def br(width: Double, height: Double, bottomRight: Vec2 = Vec2Z): 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. The default position for the bottomRight parameter places the bottom right vertex of the Rect at the origin.

  10. def cenV0(cen: Vec2, v0: Vec2): Rect

    Factory method to create a Rect from the centre point and the v0 point.

    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.

  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. def colouredBordered(height: Double, colour: Colour, lineWidth: Double = 1): PolygonCompound
  13. def cross(width: Double, height: Double, barWidth: Double): Arr[Polygon]
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def goldenRatio(height: Double): Rectangle
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. implicit val prolignImplicit: Prolign[Rect]
  24. implicit val reflectAxesImplicit: TransAxes[Rect]
  25. implicit val scaleImplicit: Scale[Rect]
  26. implicit val slateImplicit: Slate[Rect]
  27. implicit val slateToImplicit: SlateTo[Rect]
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def tl(width: Double, height: Double, topLeft: Vec2 = Vec2Z): 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. The default position for the topLeft parameter places the top left vertex of the Rect at the origin.

  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def tr(width: Double, height: Double, topRight: Vec2 = Vec2Z): Rect

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

    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.

  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. object RectImp extends Serializable

    Companion object for the Rect.RectImp class

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped