Class: QuadAABB
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new QuadAABB(): QuadAABB
Returns
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
Name | Type |
---|---|
cx | number |
cy | number |
sideX | number |
sideY | number |
Returns
void
Defined in
src/core/tree/quad/QuadAABB.ts:28
setOffset
▸ setOffset(vec
): void
Parameters
Name | Type |
---|---|
vec | Vector3 |
Returns
void
Defined in
src/core/tree/quad/QuadAABB.ts:37
setContainRect
▸ setContainRect(minX
, minY
, maxX
, maxY
): void
Parameters
Name | Type |
---|---|
minX | number |
minY | number |
maxX | number |
maxY | number |
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
Name | Type |
---|---|
pos | Vector3 |
Returns
void
Defined in
src/core/tree/quad/QuadAABB.ts:64
clone
▸ clone(): QuadAABB
Returns
Defined in
src/core/tree/quad/QuadAABB.ts:79
overlapTest
▸ overlapTest(box
): boolean
Parameters
Name | Type |
---|---|
box | QuadAABB |
Returns
boolean
Defined in
src/core/tree/quad/QuadAABB.ts:107
isPointInside
▸ isPointInside(pos
): boolean
Parameters
Name | Type |
---|---|
pos | Vector3 |
Returns
boolean
Defined in
src/core/tree/quad/QuadAABB.ts:115
isIntersectLineSegment
▸ isIntersectLineSegment(p1x
, p1y
, p2x
, p2y
): boolean
Parameters
Name | Type |
---|---|
p1x | number |
p1y | number |
p2x | number |
p2y | number |
Returns
boolean