29#ifndef GU_DISTANCE_SEGMENT_SEGMENT_H
30#define GU_DISTANCE_SEGMENT_SEGMENT_H
32#include "common/PxPhysXCommonConfig.h"
43 PX_PHYSX_COMMON_API PxReal distanceSegmentSegmentSquared(
const PxVec3& origin0,
const PxVec3& dir0, PxReal extent0,
44 const PxVec3& origin1,
const PxVec3& dir1, PxReal extent1,
45 PxReal* s=NULL, PxReal* t=NULL);
47 PX_PHYSX_COMMON_API PxReal distanceSegmentSegmentSquared(
const PxVec3& origin0,
const PxVec3& extent0,
48 const PxVec3& origin1,
const PxVec3& extent1,
49 PxReal* s=NULL, PxReal* t=NULL);
51 PX_FORCE_INLINE PxReal distanceSegmentSegmentSquared(
const Gu::Segment& segment0,
52 const Gu::Segment& segment1,
53 PxReal* s=NULL, PxReal* t=NULL)
55 return distanceSegmentSegmentSquared( segment0.p0, segment0.computeDirection(),
56 segment1.p0, segment1.computeDirection(),
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39