coolray.org FAQ Contact Us
CoolRay Banner
CoolRay / Documentation
Main Page   Class Hierarchy   Compound List   Compound Members   Related Pages  

Intersection Class Reference

Intersection represents the intersection point between a Ray and a Primitive. More...

#include <IntersectInfo.h>

Inheritance diagram for Intersection

Inheritance graph
[legend]
Collaboration diagram for Intersection:

Collaboration graph
[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.

Primitiveobject
 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:
  • IntersectInfo.h
You are visitor No.

counter

Copyright (c) 2001 Stefan Michel, All Rights Reserved.
Last modified: