- Preparing search index...
- The search index is not available
feng3d
Constructors
constructor
- new Sphere(center?, radius?): Sphere
-
Parameters
-
Optional center: Vector3
-
Optional radius: number
Properties
center
radius
radius: number
Methods
applyMatrix4
- applyMatrix4(matrix): Sphere
-
clampPoint
- clampPoint(point, pout?): Vector3
-
clone
- clone(): Sphere
-
containsPoint
- containsPoint(position): boolean
-
Returns boolean
copy
- copy(sphere): Sphere
-
distanceToPoint
- distanceToPoint(point): number
-
Returns number
equals
- equals(sphere): boolean
-
Returns boolean
fromPoints
- fromPoints(points): Sphere
-
fromPositions
- fromPositions(positions): Sphere
-
getBoundingBox
- getBoundingBox(box?): Box3
-
intersectsBox
- intersectsBox(box): boolean
-
Returns boolean
intersectsPlane
- intersectsPlane(plane): boolean
-
Returns boolean
intersectsSphere
- intersectsSphere(sphere): boolean
-
Returns boolean
isEmpty
- isEmpty(): boolean
-
Returns boolean
rayIntersection
- rayIntersection(position, direction, targetNormal): number
-
Returns number
射线起点到交点的距离
toString
- toString(): string
-
Returns string
translate
- translate(offset): Sphere
-
球