Main Page Class Hierarchy Compound List Compound Members Related Pages
Intersection Class ReferenceIntersection represents the intersection point between a Ray and a Primitive.
More...
#include <IntersectInfo.h>
Inheritance diagram for Intersection
[legend]Collaboration diagram for Intersection:
[legend]List of all members.
Public Methods |
|
| Intersection (double d,bool e,Primitive *o) |
|
virtual | ~Intersection () |
| virtual Vector3 | getPointWorld ()=0 |
| | Get the coordinates of the intersection point. More...
|
| virtual Vector3 | getPointObject ()=0 |
| | Get the coordinates of the intersection point. More...
|
Public Attributes |
|
double | distance |
| | distance from the ray's origin.
|
|
bool | enter |
| | true - if the ray goes from outside to inside false - if the ray goes from inside to outside.
|
|
Primitive* | object |
| | the object the intersection belongs.
|
Detailed Description
Intersection represents the intersection point between a Ray and a Primitive.
Member Function Documentation
|
Vector3 Intersection::getPointObject (
|
) [pure virtual]
|
|
|
|
Get the coordinates of the intersection point.
-
Returns:
-
Vector3 : intersection point (in the objects's coordinate system)
|
|
Vector3 Intersection::getPointWorld (
|
) [pure virtual]
|
|
|
|
Get the coordinates of the intersection point.
-
Returns:
-
Vector3 : intersection point (in the parent's coordinate system)
|
The documentation for this class was generated from the following file:
|