Options
All
  • Public
  • Public/Protected
  • All
Menu

Class R2Group<S>

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

  • new R2Group<S>(shapes: readonly S[]): R2Group<S>
  • Type parameters

    Parameters

    • shapes: readonly S[]

    Returns R2Group<S>

Properties

Readonly boundingBox

boundingBox: null | R2Box

Readonly shapes

shapes: readonly S[]

Accessors

bounds

  • Returns R2Box

xMax

  • get xMax(): number
  • Returns number

xMin

  • get xMin(): number
  • Returns number

yMax

  • get yMax(): number
  • Returns number

yMin

  • get yMin(): number
  • Returns number

Methods

contains

  • contains(that: AnyR2Shape): boolean
  • contains(x: number, y: number): boolean
  • Parameters

    Returns boolean

  • Parameters

    • x: number
    • y: number

    Returns boolean

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

intersects

  • Parameters

    Returns boolean

isDefined

  • isDefined(): boolean
  • Returns boolean

toString

  • toString(): string
  • Returns string

transform

union

  • Parameters

    Returns R2Shape

Static empty

  • Type parameters

    Returns R2Group<S>

Static fromAny

  • Parameters

    Returns R2Shape

Static isAny

  • Parameters

    • value: unknown

    Returns value is AnyR2Shape

Static of

  • of<S>(...shapes: S[]): R2Group<S>
  • Type parameters

    Parameters

    • Rest ...shapes: S[]

    Returns R2Group<S>

Generated using TypeDoc