Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • OBB

Index

Constructors

constructor

  • new OBB(minX: number, minY: number, maxX: number, maxY: number, orientation: number): OBB

Properties

Private axis

axis: Vector2[]

Private center

center: Vector2

Private extend

extend: Vector2

Private points

points: Vector2[]

Methods

getAxis

getCenter

getExtend

getPoints

overlap

  • overlap(obb: OBB): boolean

setAxis

setCenter

setExtend

setPoints

  • setPoints(points: Vector2[]): void

update

  • update(minX: number, minY: number, maxX: number, maxY: number, orientation: number): void
  • Parameters

    • minX: number
    • minY: number
    • maxX: number
    • maxY: number
    • orientation: number

    Returns void

Generated using TypeDoc