panda3d.core.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.

operatorNew(size: size_t) → None
getCenter() → LPoint3
Return type

LPoint3

getRadius() → float
setCenter(center: LPoint3) → None

Sets the center point of the sphere.

setRadius(radius: float) → None

Sets the radius of the sphere.

static getClassType() → TypeHandle
Return type

TypeHandle

property center

Getter Setter

Sets the center point of the sphere.

Return type

LPoint3

property radius

Getter Setter

Sets the radius of the sphere.

Return type

float