Unigine::WorldIntersection Class
This class stores the result of the world intersection (the coordinates of the intersection, the index of the intersected triangle and the index of the intersected surface).
To use this class, include the UnigineWorld.h file.
Unigine::WorldIntersection Class
Members
WorldIntersection ()
The WorldIntersection constructor.virtual ~WorldIntersection ()
The virtual WorldIntersection destructor.virtual void setPoint (UNIGINE_VEC3 point) const =0
Sets new coordinates of the intersection point.Arguments
- UNIGINE_VEC3 point - Coordinates of the intersection point.
virtual UNIGINE_VEC3 getPoint () const =0
Returns coordinates of the intersection point.Return value
Coordinates of the intersection point.virtual void setIndex (int index) const =0
Sets the new intersection triangle number.Arguments
- int index - Intersection triangle number.
virtual int getIndex () const =0
Returns the number of the intersected triangle.Return value
Intersected triangle number.virtual void setSurface (int surface) const =0
Sets the new intersection surface number.Arguments
- int surface - Intersection surface number.
virtual int getSurface () const =0
Returns the intersected surface number.Return value
Intersected surface number.Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)