panda3d.core.BoundingSphere

from panda3d.core import BoundingSphere
class BoundingSphere

Bases: FiniteBoundingVolume

This defines a bounding sphere, consisting of a center and a radius. It is always a sphere, and never an ellipsoid or other quadric.

Inheritance diagram

Inheritance diagram of BoundingSphere

__init__() → None

Constructs an empty sphere.

__init__(center: LPoint3, radius: float) → None

Constructs a specific sphere.

property center

Getter Setter

Sets the center point of the sphere.

Return type

LPoint3

getCenter() → LPoint3
Return type

LPoint3

static getClassType() → TypeHandle
Return type

TypeHandle

getRadius() → float
operatorNew(size: size_t) → None
property radius

Getter Setter

Sets the radius of the sphere.

Return type

float

setCenter(center: LPoint3) → None

Sets the center point of the sphere.

setRadius(radius: float) → None

Sets the radius of the sphere.