AGX Dynamics  2.35.0.1
ElasticRestLengthCalculator.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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 #ifndef AGXCOLLIDE_ELASTIC_REST_LENGTH_CALCULATOR_H
18 #define AGXCOLLIDE_ELASTIC_REST_LENGTH_CALCULATOR_H
19 
20 #include <agx/agxPhysics_export.h>
21 #include <agx/Vec3.h>
22 
23 
24 namespace agxCollide
25 {
26  class Shape;
27  class Sphere;
28  class Box;
29  class Capsule;
30  class Cylinder;
31  class Mesh;
32 
33  namespace ElasticRestLengthCalculator
34  {
50  const agxCollide::Shape* shape,
51  const agx::Vec3& point,
52  const agx::Vec3& normal,
53  const agx::Real depth);
54 
72  const agxCollide::Sphere* sphere,
73  const agx::Vec3& point,
74  const agx::Vec3& normal,
75  const agx::Real depth);
76 
94  const agxCollide::Box* box,
95  const agx::Vec3& point,
96  const agx::Vec3& normal,
97  const agx::Real depth);
98 
116  const agxCollide::Capsule* capsule,
117  const agx::Vec3& point,
118  const agx::Vec3& normal,
119  const agx::Real depth);
120 
138  const agxCollide::Cylinder* cylinder,
139  const agx::Vec3& point,
140  const agx::Vec3& normal,
141  const agx::Real depth);
142 
160  const agxCollide::Mesh* mesh,
161  const agx::Vec3& point,
162  const agx::Vec3& normal,
163  const agx::Real depth);
164 
165  }
166 }
167 
168 #endif
#define AGXPHYSICS_EXPORT
A box shape for geometric intersection tests.
Definition: Box.h:33
Implements a Capsule shape for geometric intersection tests.
Definition: Capsule.h:35
A cylinder shape for geometric intersection tests.
Definition: Cylinder.h:37
Mesh is a common base class for triangle meshes, such as Mesh or HeightField.
Definition: Mesh.h:70
Base class for a shape.
Definition: Shape.h:54
A sphere class for geometric intersection tests.
Definition: Sphere.h:32
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.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
double Real
Definition: Real.h:42