AGX Dynamics  2.37.3.2
ElasticRestLengthCalculator.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
19 #include <agx/agxPhysics_export.h>
20 #include <agx/Vec3.h>
21 
22 
23 namespace agxCollide
24 {
25  class Shape;
26  class Sphere;
27  class Box;
28  class Capsule;
29  class Cylinder;
30  class Mesh;
31 
32  namespace ElasticRestLengthCalculator
33  {
49  const agxCollide::Shape* shape,
50  const agx::Vec3& point,
51  const agx::Vec3& normal,
52  const agx::Real depth);
53 
71  const agxCollide::Sphere* sphere,
72  const agx::Vec3& point,
73  const agx::Vec3& normal,
74  const agx::Real depth);
75 
93  const agxCollide::Box* box,
94  const agx::Vec3& point,
95  const agx::Vec3& normal,
96  const agx::Real depth);
97 
115  const agxCollide::Capsule* capsule,
116  const agx::Vec3& point,
117  const agx::Vec3& normal,
118  const agx::Real depth);
119 
137  const agxCollide::Cylinder* cylinder,
138  const agx::Vec3& point,
139  const agx::Vec3& normal,
140  const agx::Real depth);
141 
159  const agxCollide::Mesh* mesh,
160  const agx::Vec3& point,
161  const agx::Vec3& normal,
162  const agx::Real depth);
163 
164  }
165 }
166 
Mesh is a common base class for triangle meshes, such as Mesh or HeightField.
Definition: Mesh.h:69
Implements a Capsule shape for geometric intersection tests.
Definition: Capsule.h:34
Base class for a shape.
Definition: Shape.h:53
This namespace consists of a set of classes for handling geometric intersection tests including boole...
#define AGXPHYSICS_EXPORT
agx::Real AGXPHYSICS_EXPORT calculateElasticRestLength(const agxCollide::Shape *shape, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real depth)
Computes elastic rest length for this shape, point and normal.
A sphere class for geometric intersection tests.
Definition: Sphere.h:31
A box shape for geometric intersection tests.
Definition: Box.h:32
double Real
Definition: Real.h:42
A cylinder shape for geometric intersection tests.
Definition: Cylinder.h:36