opal::RaycastResult Struct Reference

#include <RaycastSensor.h>

List of all members.

Public Member Functions

OPAL_DECL RaycastResult ()
OPAL_DECL RaycastResult (const RaycastResult &result)
OPAL_DECL ~RaycastResult ()
OPAL_DECL void OPAL_CALL operator= (const RaycastResult &result)

Public Attributes

Solidsolid
Point3r intersection
Vec3r normal
real distance


Detailed Description

A data structure containing information about a specific intersection from a ray cast.

Definition at line 42 of file RaycastSensor.h.


Constructor & Destructor Documentation

OPAL_DECL opal::RaycastResult::RaycastResult  )  [inline]
 

Definition at line 44 of file RaycastSensor.h.

References distance, and solid.

OPAL_DECL opal::RaycastResult::RaycastResult const RaycastResult result  )  [inline]
 

Copy constructor.

Definition at line 53 of file RaycastSensor.h.

OPAL_DECL opal::RaycastResult::~RaycastResult  )  [inline]
 

Definition at line 58 of file RaycastSensor.h.


Member Function Documentation

OPAL_DECL void OPAL_CALL opal::RaycastResult::operator= const RaycastResult result  )  [inline]
 

Makes a deep copy.

Definition at line 62 of file RaycastSensor.h.

References distance, intersection, normal, and solid.


Member Data Documentation

real opal::RaycastResult::distance
 

The distance from the base of the ray to the intersection point.

Definition at line 83 of file RaycastSensor.h.

Referenced by opal::ODESimulator::internal_addRaycastResult(), opal::operator<(), operator=(), and RaycastResult().

Point3r opal::RaycastResult::intersection
 

The point of intersection.

Definition at line 76 of file RaycastSensor.h.

Referenced by opal::ODESimulator::internal_addRaycastResult(), and operator=().

Vec3r opal::RaycastResult::normal
 

The normal vector at the point of intersection.

Definition at line 79 of file RaycastSensor.h.

Referenced by opal::ODESimulator::internal_addRaycastResult(), and operator=().

Solid* opal::RaycastResult::solid
 

The first Solid hit by the ray. This will remain NULL if no Solid is hit.

Definition at line 73 of file RaycastSensor.h.

Referenced by opal::ODESimulator::internal_addRaycastResult(), operator=(), and RaycastResult().


The documentation for this struct was generated from the following file:
Generated on Tue May 16 17:49:57 2006 for OPAL by  doxygen 1.4.6-NO