cpe::plane Class Reference

Object3d of type (infinite) Plane (position+normal). Analytically compute intersection with a ray. More...

Inheritance diagram for cpe::plane:
Inheritance graph
[legend]
Collaboration diagram for cpe::plane:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 plane ()
 empty constructor
 plane (const v3 &x0, const v3 &n)
 direct constructor (position+normal)
virtual ~plane ()
 destructor
virtual std::vector
< intersection_data
intersect (const ray &seg) const
 Analytic intersection between a ray and the plane.

Private Attributes

const v3 x0
 internal position of the plane (not unique for a given plane)
const v3 n
 internal normal of the plane

Detailed Description

Object3d of type (infinite) Plane (position+normal). Analytically compute intersection with a ray.


Constructor & Destructor Documentation

cpe::plane::plane (  ) 

empty constructor

cpe::plane::plane ( const v3 x0,
const v3 n 
)

direct constructor (position+normal)

cpe::plane::~plane (  )  [virtual]

destructor


Member Function Documentation

std::vector< intersection_data > cpe::plane::intersect ( const ray seg  )  const [virtual]

Analytic intersection between a ray and the plane.

Implements cpe::object3d.

References cpe::v3::dot(), n, cpe::ray::u(), cpe::ray::x0(), and x0.

Here is the call graph for this function:


Member Data Documentation

const v3 cpe::plane::n [private]

internal normal of the plane

Referenced by intersect().

const v3 cpe::plane::x0 [private]

internal position of the plane (not unique for a given plane)

Referenced by intersect().


The documentation for this class was generated from the following files:
Generated on Mon Apr 18 16:13:46 2011 by  doxygen 1.6.3