AGX Dynamics  2.35.0.1
agxSDK::LineContactEdge Class Reference

#include <LineCollisionUtils.h>

Public Member Functions

 LineContactEdge ()
 
 LineContactEdge (const agx::Vec3 &start, const agx::Vec3 &end)
 
 ~LineContactEdge ()
 
LineContactEdge findOppositeEdge () const
 
const agx::Vec3 & getEndPoint () const
 
agx::Real getLength () const
 
int getMajorEdgeAxis () const
 
const agx::Vec3 & getNormalized () const
 
const agx::Vec3 & getStartPoint () const
 
agx::Vec3 getVector () const
 
void mirror ()
 

Static Public Member Functions

static LineContactEdge findOppositeEdge (const agx::Vec3 &edgeStart, const agx::Vec3 &edgeEnd, const agx::Vec3 &edge)
 
static agx::Vec3 setValueWhereZeroEntries (const agx::Vec3 &edge, agx::Real value)
 Sets the value where the edge entry is zero. More...
 

Detailed Description

Definition at line 285 of file LineCollisionUtils.h.

Constructor & Destructor Documentation

◆ LineContactEdge() [1/2]

agxSDK::LineContactEdge::LineContactEdge ( )
inline

Definition at line 288 of file LineCollisionUtils.h.

Referenced by findOppositeEdge().

◆ LineContactEdge() [2/2]

agxSDK::LineContactEdge::LineContactEdge ( const agx::Vec3 &  start,
const agx::Vec3 &  end 
)
inline

Definition at line 289 of file LineCollisionUtils.h.

References agx::end(), and agx::Vec3T< T >::normalize().

◆ ~LineContactEdge()

agxSDK::LineContactEdge::~LineContactEdge ( )
inline

Definition at line 295 of file LineCollisionUtils.h.

Member Function Documentation

◆ findOppositeEdge() [1/2]

LineContactEdge agxSDK::LineContactEdge::findOppositeEdge ( ) const
inline

Definition at line 325 of file LineCollisionUtils.h.

References LineContactEdge().

◆ findOppositeEdge() [2/2]

static LineContactEdge agxSDK::LineContactEdge::findOppositeEdge ( const agx::Vec3 &  edgeStart,
const agx::Vec3 &  edgeEnd,
const agx::Vec3 &  edge 
)
inlinestatic

Definition at line 342 of file LineCollisionUtils.h.

References LineContactEdge(), agxAssert, and agx::equalsZero().

◆ getEndPoint()

const agx::Vec3& agxSDK::LineContactEdge::getEndPoint ( ) const
inline

Definition at line 298 of file LineCollisionUtils.h.

Referenced by agxSDK::LineContactPosition::getPosition().

◆ getLength()

agx::Real agxSDK::LineContactEdge::getLength ( ) const
inline

Definition at line 300 of file LineCollisionUtils.h.

◆ getMajorEdgeAxis()

int agxSDK::LineContactEdge::getMajorEdgeAxis ( ) const
inline

Definition at line 302 of file LineCollisionUtils.h.

References agx::max().

◆ getNormalized()

const agx::Vec3& agxSDK::LineContactEdge::getNormalized ( ) const
inline

Definition at line 296 of file LineCollisionUtils.h.

◆ getStartPoint()

const agx::Vec3& agxSDK::LineContactEdge::getStartPoint ( ) const
inline

Definition at line 297 of file LineCollisionUtils.h.

Referenced by agxSDK::LineContactPosition::getPosition().

◆ getVector()

agx::Vec3 agxSDK::LineContactEdge::getVector ( ) const
inline

Definition at line 299 of file LineCollisionUtils.h.

◆ mirror()

void agxSDK::LineContactEdge::mirror ( )
inline

Definition at line 316 of file LineCollisionUtils.h.

References agx::Vec3T< T >::normalize().

◆ setValueWhereZeroEntries()

static agx::Vec3 agxSDK::LineContactEdge::setValueWhereZeroEntries ( const agx::Vec3 &  edge,
agx::Real  value 
)
inlinestatic

Sets the value where the edge entry is zero.

edge = 1,0,0 => return = 0,value,value.

Definition at line 337 of file LineCollisionUtils.h.

Referenced by agxSDK::calculateBoxOffset().


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