class Sphere

Sphere object. More...

Definition#include <raytracer/sphere.h>
InheritsObject3D [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Private Types

Private Methods

Private Members


Detailed Description

Sphere object.

 Sphere (DBL r)

Sphere

Create sphere at origin.

Parameters:
rradius

 Sphere (DBL r, Vector3 l)

Sphere

Create sphere.

Parameters:
rradius
lmidpoint

Object3D*  duplicate ()

duplicate

[const]

Reimplemented from Object3D.

void  rotate (const Vector3& v)

rotate

Reimplemented from Object3D.

Intersection*  intersectUnBounded (const Ray &r)

intersectUnBounded

Reimplemented from Object3D.

Intersection*  intersectUnBounded (const Ray &r, DBL maxtime)

intersectUnBounded

Reimplemented from Object3D.

bool  isInsideAt (const Vector3 &locallocation)

isInsideAt

[const]

Reimplemented from Object3D.

void  prepareToRender ()

prepareToRender

Reimplemented from Object3D.

static HitStatistics stat

stat

[private]

DBL radius

radius

[private]

DBL radiussq

radiussq

[private]

void  calculateBoundingBox ()

calculateBoundingBox

[private]

SphereIntersection (class)

SphereIntersection

[private]

Describes Ray-Sphere Intersection.