This is the documentation for Enlighten.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

class Geo::GeoBoundingSphere

This class represents a bounding sphere.

It is stored as a v128, with position in the first 3 components, and radius in w.

Variables

Name Description
Geo::v128 m_Sphere

The v128 representation.

Functions

Name Description
GeoBoundingSphere()

Constructor - makes an empty bounding sphere.

GeoBoundingSphere(v128, float)

Constructor - makes a bounding sphere.

GeoBoundingSphere(const GeoBoundingSphere &)

Copy Constructor.

GeoBoundingSphere(const GeoBoundingBox &)

Conversion Constructor.

GeoBoundingSphere(const GeoNonAABoundingBox &)

Conversion Constructor.

GetCenter()

Return the center of this bounding sphere.

GetRadius()

Return the sphere radius.

SetCenter(v128)

Set the center of this bounding sphere.

SetRadius(float)

Set the sphere radius.


Geo::GeoBoundingSphere::GeoBoundingSphere


public: GeoBoundingSphere()


Constructor - makes an empty bounding sphere.


Geo::GeoBoundingSphere::GeoBoundingSphere


public: GeoBoundingSphere
(
    v128 center,
    float radius
)


Constructor - makes a bounding sphere.


Geo::GeoBoundingSphere::GeoBoundingSphere


public: GeoBoundingSphere
(
    const GeoBoundingSphere & from
)


Copy Constructor.


Geo::GeoBoundingSphere::GeoBoundingSphere


public: GeoBoundingSphere
(
    const GeoBoundingBox & from
)


Conversion Constructor.


Geo::GeoBoundingSphere::GeoBoundingSphere


public: GeoBoundingSphere
(
    const GeoNonAABoundingBox & from
)


Conversion Constructor.


v128 Geo::GeoBoundingSphere::GetCenter


public: v128 GetCenter() const


Return the center of this bounding sphere.


float Geo::GeoBoundingSphere::GetRadius


public: float GetRadius() const


Return the sphere radius.


void Geo::GeoBoundingSphere::SetCenter


public: void SetCenter
(
    v128 c
)


Set the center of this bounding sphere.


void Geo::GeoBoundingSphere::SetRadius


public: void SetRadius
(
    float r
)


Set the sphere radius.

  • No labels