Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Collision

Index

Functions

intersect

  • intersect(x1: number, y1: number, width1: number, height1: number, x2: number, y2: number, width2: number, height2: number): boolean
  • Parameters

    • x1: number
    • y1: number
    • width1: number
    • height1: number
    • x2: number
    • y2: number
    • width2: number
    • height2: number

    Returns boolean

intersectAreas

within

  • within(t1x: number, t1y: number, t2x: number, t2y: number, distance?: number): boolean
  • Parameters

    • t1x: number
    • t1y: number
    • t2x: number
    • t2y: number
    • Optional distance: number

    Returns boolean

withinAreas

  • Parameters

    Returns boolean

Generated using TypeDoc