Ignore:
Timestamp:
11/25/05 22:31:30 (19 years ago)
Author:
mattausch
Message:

detected leak in BspTree?
added specialised fast view cell bsp tree called VspBspTree?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/RayInfo.h

    r420 r437  
    77class VssRay; 
    88class RayInfo; 
     9class Plane3; 
     10class Vector3; 
    911 
    1012typedef vector<RayInfo> RayInfoContainer; 
     
    4042        } 
    4143         
     44        /** Extracts the scalar of the starting point of the ray segment 
     45                that lies in the axis. 
     46        */ 
     47        float ExtrapOrigin(const int axis) const; 
     48        /** Extracts the scalar of the termination point of the ray segment 
     49                that lies in the axis. 
     50        */ 
     51        float ExtrapTermination(const int axis) const; 
    4252         
    43         float ExtrapOrigin(const int axis) const; 
     53        /** Extracts the starting point of the ray segment. 
     54        */ 
     55        Vector3 ExtrapOrigin() const; 
    4456         
    45         float ExtrapTermination(const int axis) const; 
     57        /** Extracts the end point of the ray segment. 
     58        */ 
     59        Vector3 ExtrapTermination() const; 
    4660         
    4761        float GetMinT () const; 
     
    5266        void SetMaxT (const float t); 
    5367 
     68        float SegmentLength() const; 
     69        float SqrSegmentLength() const; 
     70 
    5471        /** Computes intersection of this ray with the axis aligned split plane. 
     72         
    5573                @param axis axis of the split plane 
    56                 @param position position of the split plane 
    57                 @param t returns the t value of the ray intersection 
     74                @param position scalar position of the split plane for the chosen axis 
     75                @param t returns the t parameter value of the ray intersection 
    5876 
    5977                @returns 0 if ray intersects plane, -1 if on back side of plane, 1 if on front side 
    6078        */ 
    6179        int ComputeRayIntersection(const int axis, const float position, float &t) const; 
     80 
     81        /** Computes intersection of this ray with the split plane. 
     82 
     83                @param splitPlane the split plane 
     84                @param t returns the t parameter value of the ray intersection 
     85 
     86                @returns 0 if ray intersects plane, -1 if on back side of plane, 1 if on front side 
     87        */ 
     88        int ComputeRayIntersection(const Plane3 &splitPlane, float &t) const; 
    6289}; 
    6390 
Note: See TracChangeset for help on using the changeset viewer.