- Preparing search index...
- The search index is not available
feng3d
Constructors
constructor
- new Box3(min?, max?): Box3
-
Properties
max
min
Methods
applyMatrix
- applyMatrix(mat): Box3
-
applyMatrixTo
- applyMatrixTo(mat, out?): Box3
-
clampPoint
- clampPoint(point, out?): Vector3
-
clone
- clone(): Box3
-
closestPointToPoint
- closestPointToPoint(point, target?): Vector3
-
contains
- contains(aabb): boolean
-
Returns boolean
containsPoint
- containsPoint(p): boolean
-
Returns boolean
copy
- copy(aabb): Box3
-
empty
- empty(): Box3
-
equals
- equals(aabb): boolean
-
Returns boolean
expandByPoint
- expandByPoint(point): Box3
-
formPositions
- formPositions(positions): Box3
-
Parameters
-
positions: ArrayLike<number>
fromPoints
- fromPoints(ps): Box3
-
getCenter
- getCenter(vOut?): Vector3
-
getSize
- getSize(vOut?): Vector3
-
inflate
- inflate(dx, dy, dz): void
-
Parameters
-
dx: number
-
dy: number
-
dz: number
Returns void
inflatePoint
- inflatePoint(delta): void
-
Returns void
init
- init(min, max): Box3
-
intersection
- intersection(aabb): Box3
-
intersectionTo
- intersectionTo(aabb, out?): Box3
-
intersects
- intersects(aabb): boolean
-
Returns boolean
intersectsPlane
- intersectsPlane(plane): boolean
-
Returns boolean
intersectsSphere
- intersectsSphere(sphere): boolean
-
Returns boolean
intersectsTriangle
- intersectsTriangle(triangle): boolean
-
Returns boolean
isEmpty
- isEmpty(): boolean
-
Returns boolean
offset
- offset(dx, dy, dz): Box3
-
Parameters
-
dx: number
-
dy: number
-
dz: number
offsetPosition
- offsetPosition(position): Box3
-
overlaps
- overlaps(box3): boolean
-
Returns boolean
random
- random(): Box3
-
randomPoint
- randomPoint(pout?): Vector3
-
rayIntersection
- rayIntersection(position, direction, outTargetNormal?): number
-
Returns number
起点到包围盒距离
scale
- scale(s): Box3
-
toPoints
- toPoints(points?): Vector3[]
-
toString
- toString(): string
-
Returns string
toTriangles
- toTriangles(triangles?): Triangle3[]
-
translate
- translate(offset): Box3
-
union
- union(aabb): Box3
-
轴向对称包围盒