Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Wedge Class Reference

Define wedge-like surface formed by two intesecting planes. More...

#include <Wedge.h>

Inheritance diagram for Wedge:

Surface GeomObject List of all members.

Public Methods

 Wedge (const Point& c,const Vector& axis, double phi1, double phi2)
virtual double how_near ( const Point& x ) const
 signed function giving minimum distance to the surface: surface is actually defined by zero. More...

virtual double distance ( const Point& x ,const Vector& v, int inout) const
 distance along direction v from point x to enter or leave the surface. More...

virtual Vector normal ( const Point& x ) const
 returns normal-vector at Point x, assuming x to be on the surface. More...

const Vectoraxis () const
const Vectorn1 () const
const Vectorn2 () const
const char* nameOf () const
 makes name available to subclasses using the type info facility. More...


Private Attributes

Vector _n1
Vector _n2
double dphi

Detailed Description

Define wedge-like surface formed by two intesecting planes.

Definition at line 11 of file Wedge.h.


Constructor & Destructor Documentation

Wedge::Wedge ( const Point & center,
const Vector & axis,
double phi1,
double phi2 )
 

Definition at line 7 of file Wedge.cxx.


Member Function Documentation

const Vector & Wedge::axis ( ) const [inline]
 

Definition at line 25 of file Wedge.h.

Referenced by how_near().

double Wedge::distance ( const Point & x,
const Vector & v,
int inout ) const [virtual]
 

distance along direction v from point x to enter or leave the surface.

Reimplemented from Surface.

Definition at line 153 of file Wedge.cxx.

double Wedge::how_near ( const Point & x ) const [virtual]
 

signed function giving minimum distance to the surface: surface is actually defined by zero.

The distance will be positive if the point is inside the Plane, negative if the point is outside.

Reimplemented from Surface.

Definition at line 29 of file Wedge.cxx.

const Vector & Wedge::n1 ( ) const
 

Definition at line 23 of file Wedge.cxx.

Referenced by Cons::angle1(), and how_near().

const Vector & Wedge::n2 ( ) const
 

Definition at line 26 of file Wedge.cxx.

Referenced by Cons::angle2(), and how_near().

const char * Wedge::nameOf ( ) const [inline, virtual]
 

makes name available to subclasses using the type info facility.

Reimplemented from GeomObject.

Definition at line 29 of file Wedge.h.

Vector Wedge::normal ( const Point & x ) const [virtual]
 

returns normal-vector at Point x, assuming x to be on the surface.

Reimplemented from Surface.

Definition at line 181 of file Wedge.cxx.


Member Data Documentation

Vector Wedge::_n1 [private]
 

Definition at line 32 of file Wedge.h.

Vector Wedge::_n2 [private]
 

Definition at line 33 of file Wedge.h.

double Wedge::dphi [private]
 

Definition at line 34 of file Wedge.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:14 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000