cpe::plane Class Reference

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

+ Inheritance diagram for cpe::plane:
+ Collaboration diagram for cpe::plane:

List of all members.

Public Member Functions

 plane ()
 empty constructor
 plane (const v3 &x0, const v3 &n)
 direct constructor (position+normal)
virtual ~plane ()
 destructor
const v3normal () const
 get the normal of the plane
const v3position () const
 get the position of the plane
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

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:

const v3 & cpe::plane::normal ( ) const

get the normal of the plane

References n.

const v3 & cpe::plane::position ( ) const

get the position of the plane

References x0.


Member Data Documentation

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

internal normal of the plane

Referenced by intersect(), and normal().

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

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

Referenced by intersect(), and position().


The documentation for this class was generated from the following files: