Rect

bearlyb.rect.Rect
See theRect companion class
object Rect

Attributes

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

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Types

opaque type CompareEpsilon[T]
opaque type EnclosepointsEpsilon[T]

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def empty[T](using num: Numeric[T]): Rect[T]
def enclosePoints[T](points: IterableOnce[Point[T]], clip: Rect[T] | Null)(using num: Numeric[T], encloseEps: EnclosepointsEpsilon[T]): Rect[T]
def enclosePoints[T : EnclosepointsEpsilon](points: Point[T]*): Rect[T]
def enclosePoints[T : EnclosepointsEpsilon](clip: Rect[T], points: Point[T]*): Rect[T]

Concrete fields

inline val CodeBottom: 1
inline val CodeLeft: 4
inline val CodeRight: 8
inline val CodeTop: 2

Extensions

Extensions

extension [T](a: T)(using num: Fractional[T] | Integral[T])
inline def /(b: T): T
extension [T](self: Rect[T])(using num: Numeric[T])
def isEmpty: Boolean
def toDoubleRect: Rect[Double]
def toFloatRect: Rect[Float]
def toIntRect: Rect[Int]
def toLongRect: Rect[Long]
def xmax: T
def ymax: T
extension [T](self: Rect[T])(using num: Numeric[T])
def equalsEpsilon(other: Rect[T], epsilon: T): Boolean
def union(other: Rect[T]): Rect[T]
extension [T](self: Rect[T])(using num: Numeric[T], epsilon: CompareEpsilon[T])
def ~==(other: Rect[T]): Boolean
extension [T](self: Rect[T])(using num: Numeric[T], encloseEps: EnclosepointsEpsilon[T])
def intersection(other: Rect[T]): Rect[T]
extension [T](self: Rect[T])(using num: Numeric[T], EnclosepointsEpsilon[T])
def hasIntersection(other: Rect[T]): Boolean
extension [T](self: Rect[T])(using num: Fractional[T] | Integral[T], encloseEps: EnclosepointsEpsilon[T])
def intersection(x1: T, y1: T, x2: T, y2: T): Option[(near: Point[T], far: Point[T])]