AGXDynamics
2.35.0.2
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
{
49
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
50
const
agxCollide::Shape
* shape,
51
const
agx::Vec3
& point,
52
const
agx::Vec3
& normal,
53
const
agx::Real
depth);
54
71
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
72
const
agxCollide::Sphere
* sphere,
73
const
agx::Vec3
& point,
74
const
agx::Vec3
& normal,
75
const
agx::Real
depth);
76
93
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
94
const
agxCollide::Box
* box,
95
const
agx::Vec3
& point,
96
const
agx::Vec3
& normal,
97
const
agx::Real
depth);
98
115
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
116
const
agxCollide::Capsule
* capsule,
117
const
agx::Vec3
& point,
118
const
agx::Vec3
& normal,
119
const
agx::Real
depth);
120
137
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
138
const
agxCollide::Cylinder
* cylinder,
139
const
agx::Vec3
& point,
140
const
agx::Vec3
& normal,
141
const
agx::Real
depth);
142
159
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
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
agxCollide::Box
A box shape for geometric intersection tests.
Definition:
Box.h:32
agxPhysics_export.h
agxCollide::Mesh
Mesh is a common base class for triangle meshes, such as Mesh or HeightField.
Definition:
Mesh.h:69
agxCollide::Capsule
Implements a Capsule shape for geometric intersection tests.
Definition:
Capsule.h:34
agx::Real
double Real
Definition:
Real.h:42
agxCollide::Cylinder
A cylinder shape for geometric intersection tests.
Definition:
Cylinder.h:36
agxCollide::Sphere
A sphere class for geometric intersection tests.
Definition:
Sphere.h:31
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
Vec3.h
agxCollide::Shape
Base class for a shape.
Definition:
Shape.h:53
agxCollide
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Definition:
ContactForceFilterParticipant.h:22
agx::Vec3T< Real >
agxCollide::ElasticRestLengthCalculator::calculateElasticRestLength
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.
include
agxCollide
ElasticRestLengthCalculator.h
Generated on Mon Jan 30 2023 15:44:12 for AGXDynamics by
1.8.17