This is the documentation for Enlighten.

class Enlighten SphereVolume

class Enlighten::SphereVolume

    └>Enlighten::TransparencyVolumeBase

Sphere volume primitive.

Functions

Name Description
GetRadius()

Gets the radius of the sphere.

SetRadius(float)

Sets the radius of the sphere.

SphereVolume(const Geo::v128 &, float)

Constructor.

TestQuad(const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::Matrix &)

Tests the given quad.

Variables

Name Description
Geo::Matrix m_Transform

Transformation matrix for this volume.

float m_Transparency

Transparency value [0..1].


float Enlighten::SphereVolume::GetRadius


public: float GetRadius() const


Gets the radius of the sphere.


void Enlighten::SphereVolume::SetRadius


public: void SetRadius
(
    float radius
)


Sets the radius of the sphere.


Enlighten::SphereVolume::SphereVolume


public: SphereVolume
(
    const Geo::v128 & position,
    float radius
)


Constructor.


Geo::v128 Enlighten::SphereVolume::TestQuad


public: Geo::v128 TestQuad
(
    const Geo::v128 & x,
    const Geo::v128 & y,
    const Geo::v128 & z,
    const Geo::Matrix & invTransform
) const


Tests the given quad.