This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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
Build: ()