Blender  V3.3
Functions
SphereTriangleDetector.cpp File Reference
#include "LinearMath/btScalar.h"
#include "SphereTriangleDetector.h"
#include "BulletCollision/CollisionShapes/btTriangleShape.h"
#include "BulletCollision/CollisionShapes/btSphereShape.h"

Go to the source code of this file.

Functions

btScalar SegmentSqrDistance (const btVector3 &from, const btVector3 &to, const btVector3 &p, btVector3 &nearest)
 

Function Documentation

◆ SegmentSqrDistance()

btScalar SegmentSqrDistance ( const btVector3 from,
const btVector3 to,
const btVector3 p,
btVector3 nearest 
)

Definition at line 61 of file SphereTriangleDetector.cpp.

References btVector3, KDL::diff(), KDL::Vector::dot, from, t, and v.

Referenced by SphereTriangleDetector::collide().