Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

NameDescription
Geo::v128 m_Sphere

The v128 representation.

Functions

NameDescription
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.


Anchor
a0b28cc057979d9e89a16c978656049f0
a0b28cc057979d9e89a16c978656049f0

Geo::GeoBoundingSphere::GeoBoundingSphere

...

public: GeoBoundingSphere()

...

Constructor - makes an empty bounding sphere.


Anchor
ac7a32b94af5613c7bdfd934ce4fd0c92
ac7a32b94af5613c7bdfd934ce4fd0c92

Geo::GeoBoundingSphere::GeoBoundingSphere

...

public: GeoBoundingSphere
(
    v128 center,
    float radius
)

...

Constructor - makes a bounding sphere.


Anchor
a3aae7b540f12ecb7530fe4a126840726
a3aae7b540f12ecb7530fe4a126840726

Geo::GeoBoundingSphere::GeoBoundingSphere

...

public: GeoBoundingSphere
(
    const GeoBoundingSphere & from
)

...

Copy Constructor.


Anchor
a9988ba83915fd9b30456625fb3b6abed
a9988ba83915fd9b30456625fb3b6abed

Geo::GeoBoundingSphere::GeoBoundingSphere

...

public: GeoBoundingSphere
(
    const GeoBoundingBox & from
)

...

Conversion Constructor.


Anchor
af4eed6759924e80b7868015f6c18d155
af4eed6759924e80b7868015f6c18d155

Geo::GeoBoundingSphere::GeoBoundingSphere

...

public: GeoBoundingSphere
(
    const GeoNonAABoundingBox & from
)

...

Conversion Constructor.


Anchor
a53e98deea0651db50da1315ebf1fc687
a53e98deea0651db50da1315ebf1fc687

v128 Geo::GeoBoundingSphere::GetCenter

...

public: v128 GetCenter() const

...

Return the center of this bounding sphere.


Anchor
adbc7afa564e45d54925f020160d49437
adbc7afa564e45d54925f020160d49437

float Geo::GeoBoundingSphere::GetRadius

...

public: float GetRadius() const

...

Return the sphere radius.


Anchor
ae6f2b35a3a2442a0027820a2d78dc087
ae6f2b35a3a2442a0027820a2d78dc087

void Geo::GeoBoundingSphere::SetCenter

...

public: void SetCenter
(
    v128 c
)

...

Set the center of this bounding sphere.


Anchor
a2cb0896bfdee6e88874b714a42d461f1
a2cb0896bfdee6e88874b714a42d461f1

void Geo::GeoBoundingSphere::SetRadius

...

public: void SetRadius
(
    float r
)

...

Set the sphere radius.