Main Page | Class Hierarchy | Class List | File List | Class Members

Cylinder Class Reference

#include <cylinder.h>

Inheritance diagram for Cylinder:

Object3D SurfacePatch3D TransparentTransformatable Transformatable List of all members.

Public Member Functions

 Cylinder ()
 Cylinder (const Vector3 &base, const Vector3 &cap, DBL r)
Object3Dduplicate () const
IntersectionintersectLocalLimitedTime (const Ray &r, DBL maxtime) const
bool isInsideAt (const Vector3 &locallocation) const

Detailed Description

Cylinder Object
Author:
Micha Riser


Constructor & Destructor Documentation

Cylinder::Cylinder  ) 
 

Create Cylinder: base point origin, cap point <0,0,1>, radius 1

Cylinder::Cylinder const Vector3 base,
const Vector3 cap,
DBL  r
 

Create Cylinder from base point, cap point and radius.


Member Function Documentation

Object3D* Cylinder::duplicate  )  const [inline, virtual]
 

Create a duplicate of the object. Must be of the same type!

Returns:
An exact duplicate of the object.

Implements SurfacePatch3D.

bool Cylinder::isInsideAt const Vector3 locallocation  )  const [virtual]
 

Test point for insideness.

Parameters:
locallocation point in object space to test
Returns:
true if point is inside the object else false

Implements Object3D.


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 12:16:06 2005 for raytracer.kdevelop by doxygen 1.3.8