RigsofRods
Soft-body Physics Simulation
Functions
SlideNode.cpp File Reference
#include "SlideNode.h"
#include "Actor.h"
#include "Application.h"
#include "SimData.h"
+ Include dependency graph for SlideNode.cpp:

Go to the source code of this file.

Functions

Ogre::Vector3 NearestPointOnLine (const Ogre::Vector3 &pt1, const Ogre::Vector3 &pt2, const Ogre::Vector3 &tp)
 Find the point on a line defined by pt1 and pt2 that is nearest to a given point tp tp /| A / | / | / | pt1—o-----------—pt2 B' B. More...
 

Detailed Description

Author
Christopher Ritchey
Date
10/30/2009

Definition in file SlideNode.cpp.

Function Documentation

◆ NearestPointOnLine()

Ogre::Vector3 NearestPointOnLine ( const Ogre::Vector3 &  pt1,
const Ogre::Vector3 &  pt2,
const Ogre::Vector3 &  tp 
)

Find the point on a line defined by pt1 and pt2 that is nearest to a given point tp tp /| A / | / | / | pt1—o-----------—pt2 B' B.

Parameters
pt1origin of two beams
pt2end point of beam being projected onto
tpend point of beam being projected
Returns
point is space from origin

Definition at line 51 of file SlideNode.cpp.

+ Here is the caller graph for this function: