#include <Ray.h>
Inheritance diagram for Ray:

Public Methods | |
| Ray ( const Point& p, const Vector& d ) | |
| Ray ( const Ray& r ) | |
| virtual Point | position ( double s ) const |
| return position along ray. More... | |
| const Point& | position () const |
| position at start of ray. More... | |
| virtual Vector | direction ( double ) const |
| return direction along ray. More... | |
| const Vector& | direction () const |
| direction at start of ray. More... | |
| GeomObject& | transform ( const CoordTransform & ) |
| transform the Ray to a new system. More... | |
| virtual double | curvature (double =0) const |
| allows polymorphic test to check local curvature. More... | |
| virtual double | step () const |
| used by Intersection::distance to step along rays searching for surface crossings. More... | |
| double | getArcLength () const |
| void | setArcLength ( double s ) |
| void | setFlag ( int k ) |
| int | getFlag () const |
| void | addArcLength ( double ds ) |
| virtual double | distanceOfClosestApproach (const Ray& r) const |
| useful for vertexing between this Ray and another. More... | |
| virtual Vector | vectorOfClosestApproach (const Ray& r) const |
| const char* | nameOf () const |
| makes name available to subclasses using the type info facility. More... | |
| virtual void | printOn ( std::ostream& os = std::cout ) const |
| print info about this object. More... | |
Protected Attributes | |
| Point | pos |
| Vector | dir |
| float | arclength |
| int | flag |
Definition at line 9 of file Ray.h.
|
|
|
|
|
|
|
|
|
|
|
allows polymorphic test to check local curvature.
Reimplemented in Helix. Definition at line 30 of file Ray.h. Referenced by Intersection::distance(). |
|
|
direction at start of ray.
Definition at line 24 of file Ray.h. Referenced by distanceOfClosestApproach(), Helix::printOn(), and vectorOfClosestApproach(). |
|
|
return direction along ray.
Reimplemented in Helix. Definition at line 22 of file Ray.h. Referenced by Track::direction(), and Intersection::distance(). |
|
|
useful for vertexing between this Ray and another.
|
|
|
Definition at line 35 of file Ray.h. Referenced by Track::Track(), Track::addSegment(), and Track::findSegment(). |
|
|
|
|
|
makes name available to subclasses using the type info facility.
Reimplemented from GeomObject. Reimplemented in Helix. |
|
|
position at start of ray.
Definition at line 19 of file Ray.h. Referenced by distanceOfClosestApproach(), Volume::distanceToEnter(), Volume::distanceToLeave(), Helix::printOn(), and vectorOfClosestApproach(). |
|
|
return position along ray.
Reimplemented in Helix. Definition at line 17 of file Ray.cxx. Referenced by Intersection::distance(), and Track::position(). |
|
|
print info about this object.
Reimplemented from GeomObject. Reimplemented in Helix. |
|
|
|
|
|
|
|
|
used by Intersection::distance to step along rays searching for surface crossings.
Reimplemented in Helix. |
|
|
transform the Ray to a new system.
Reimplemented from GeomObject. Reimplemented in Helix. Definition at line 34 of file Ray.cxx. Referenced by Helix::transform(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000