Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CullingBox

Hierarchy

  • CullingBox

Index

Properties

Private _bottomLeft

_bottomLeft: Vector = new Vector(0, 0)

Private _bottomRight

_bottomRight: Vector = new Vector(0, 0)

Private _topLeft

_topLeft: Vector = new Vector(0, 0)

Private _topRight

_topRight: Vector = new Vector(0, 0)

Private _xCoords

_xCoords: Array<number>

Private _xMax

_xMax: number

Private _xMaxWorld

_xMaxWorld: number

Private _xMin

_xMin: number

Private _xMinWorld

_xMinWorld: number

Private _yCoords

_yCoords: Array<number>

Private _yMax

_yMax: number

Private _yMaxWorld

_yMaxWorld: number

Private _yMin

_yMin: number

Private _yMinWorld

_yMinWorld: number

Methods

debugDraw

  • debugDraw(ctx: CanvasRenderingContext2D): void
  • Parameters

    • ctx: CanvasRenderingContext2D

    Returns void

isSpriteOffScreen

  • isSpriteOffScreen(actor: Actor, engine: Engine): boolean
  • Parameters

    Returns boolean