coolray.org FAQ Contact Us
CoolRay Banner
CoolRay / Documentation
Main Page   Class Hierarchy   Compound List   Compound Members   Related Pages  

Sphere Class Reference

A Sphere is a solid object which can be described with its center and radius. More...

#include <Sphere.h>

Inheritance diagram for Sphere

Inheritance graph
[legend]
Collaboration diagram for Sphere:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { PROPERTY_CENTER = 0x0300, PROPERTY_RADIUS = 0x0301 }

Public Methods

 DECLARE_CLASS (Sphere,Primitive)
 Sphere ()
virtual ~Sphere ()
virtual void setProperty (int nProperty,const Variant &value)
virtual void getProperty (int nProperty,Variant &vValue)const
virtual bool intersect (Ray *ray,IntersectionList *intersectionList)
virtual Vector3 getNormalVector (Intersection *intersection)
virtual bool getBounds (Bounds &bounds)const

Public Attributes

double radius
Vector3 center

Detailed Description

A Sphere is a solid object which can be described with its center and radius.


The documentation for this class was generated from the following file:
  • Sphere.h
You are visitor No.

counter

Copyright (c) 2001 Stefan Michel, All Rights Reserved.
Last modified: