Options
All
  • Public
  • Public/Protected
  • All
Menu

Module core/physics/utils/circleToRectIntersect

Index

Functions

circleRectCollision

  • circleRectCollision(circle: Circle | { h: number; position: { x: number; y: number }; r: number; w: number }, rect: Sprite | Rect | { h: number; position: { x: number; y: number }; w: number }): boolean
  • function
    description

    Returns a boolean based on if a circle is intersecting with a rectangle

    since

    1.1.0-beta

    Parameters

    • circle: Circle | { h: number; position: { x: number; y: number }; r: number; w: number }
    • rect: Sprite | Rect | { h: number; position: { x: number; y: number }; w: number }

    Returns boolean

Generated using TypeDoc