Skip to content

Class: QuadAABB

Constructors

Properties

Accessors

Methods

Constructors

constructor

new QuadAABB(): QuadAABB

Returns

QuadAABB

Defined in

src/core/tree/quad/QuadAABB.ts:21

Properties

minPosX

minPosX: number = 0

Defined in

src/core/tree/quad/QuadAABB.ts:5


minPosY

minPosY: number = 0

Defined in

src/core/tree/quad/QuadAABB.ts:7


maxPosX

maxPosX: number = 0

Defined in

src/core/tree/quad/QuadAABB.ts:9


maxPosY

maxPosY: number = 0

Defined in

src/core/tree/quad/QuadAABB.ts:11


testID

testID: number = 0

Defined in

src/core/tree/quad/QuadAABB.ts:13


points

points: Vector3[]

Defined in

src/core/tree/quad/QuadAABB.ts:15

Accessors

radius

get radius(): number

Returns

number

Defined in

src/core/tree/quad/QuadAABB.ts:87


sideX

get sideX(): number

Returns

number

Defined in

src/core/tree/quad/QuadAABB.ts:91


sideY

get sideY(): number

Returns

number

Defined in

src/core/tree/quad/QuadAABB.ts:95


centreX

get centreX(): number

Returns

number

Defined in

src/core/tree/quad/QuadAABB.ts:99


centreY

get centreY(): number

Returns

number

Defined in

src/core/tree/quad/QuadAABB.ts:103

Methods

setAABox

setAABox(cx, cy, sideX, sideY): void

Parameters

NameType
cxnumber
cynumber
sideXnumber
sideYnumber

Returns

void

Defined in

src/core/tree/quad/QuadAABB.ts:28


setOffset

setOffset(vec): void

Parameters

NameType
vecVector3

Returns

void

Defined in

src/core/tree/quad/QuadAABB.ts:37


setContainRect

setContainRect(minX, minY, maxX, maxY): void

Parameters

NameType
minXnumber
minYnumber
maxXnumber
maxYnumber

Returns

void

Defined in

src/core/tree/quad/QuadAABB.ts:48


clear

clear(): void

Returns

void

Defined in

src/core/tree/quad/QuadAABB.ts:55


addPoint

addPoint(pos): void

Parameters

NameType
posVector3

Returns

void

Defined in

src/core/tree/quad/QuadAABB.ts:64


clone

clone(): QuadAABB

Returns

QuadAABB

Defined in

src/core/tree/quad/QuadAABB.ts:79


overlapTest

overlapTest(box): boolean

Parameters

NameType
boxQuadAABB

Returns

boolean

Defined in

src/core/tree/quad/QuadAABB.ts:107


isPointInside

isPointInside(pos): boolean

Parameters

NameType
posVector3

Returns

boolean

Defined in

src/core/tree/quad/QuadAABB.ts:115


isIntersectLineSegment

isIntersectLineSegment(p1x, p1y, p2x, p2y): boolean

Parameters

NameType
p1xnumber
p1ynumber
p2xnumber
p2ynumber

Returns

boolean

Defined in

src/core/tree/quad/QuadAABB.ts:122