Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BSPDungeonNode

Hierarchy

  • Rect
    • BSPDungeonNode

Index

Constructors

constructor

Properties

Readonly v1

Readonly v2

Methods

center

connectChildren

  • connectChildren(): void

contains

  • contains(point: Vector2): boolean

getChildren

height

  • height(): number

intersects

  • intersects(rect: Rect): boolean

isLeafNode

  • isLeafNode(): boolean

split

  • split(): void

splitHorizontal

  • splitHorizontal(): void

splitVertical

  • splitVertical(): void

width

  • width(): number

Static FromWidthHeight

  • FromWidthHeight(v1: Vector2, width: number, height: number): Rect
  • Creates a rect from width + height. The width x height of a 1x1 block would be 1, with v2 equal to v1.

    Parameters

    • v1: Vector2

      Vector2 - The starting vector

    • width: number

      number - The width. Min 1

    • height: number

      number - The height - Min 1

    Returns Rect

    Rect - A new rect with v2 computed from width/height

Generated using TypeDoc