Ogre Procedural  0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
Public Member Functions | Public Attributes | List of all members
Procedural::Line Struct Reference

Represents a line in 3D. More...

#include <ProceduralGeometryHelpers.h>

Public Member Functions

 Line ()
 
 Line (Ogre::Vector3 point, Ogre::Vector3 direction)
 Contructor with arguments. More...
 
void setFrom2Points (const Ogre::Vector3 &a, const Ogre::Vector3 &b)
 Builds the line between 2 points. More...
 
Ogre::Vector3 shortestPathToPoint (const Ogre::Vector3 &point) const
 Finds the shortest vector between that line and a point. More...
 

Public Attributes

Ogre::Vector3 mPoint
 
Ogre::Vector3 mDirection
 

Detailed Description

Represents a line in 3D.

Constructor & Destructor Documentation

◆ Line() [1/2]

Procedural::Line::Line ( )

◆ Line() [2/2]

Procedural::Line::Line ( Ogre::Vector3  point,
Ogre::Vector3  direction 
)

Contructor with arguments.

Parameters
pointa point on the line
directiona normalized vector representing the direction of that line

Member Function Documentation

◆ setFrom2Points()

void Procedural::Line::setFrom2Points ( const Ogre::Vector3 a,
const Ogre::Vector3 b 
)

Builds the line between 2 points.

◆ shortestPathToPoint()

Ogre::Vector3 Procedural::Line::shortestPathToPoint ( const Ogre::Vector3 point) const

Finds the shortest vector between that line and a point.

Member Data Documentation

◆ mDirection

Ogre::Vector3 Procedural::Line::mDirection

◆ mPoint

Ogre::Vector3 Procedural::Line::mPoint

The documentation for this struct was generated from the following file: