AGX Dynamics
2.38.0.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
{
48
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
49
const
agxCollide::Shape
* shape,
50
const
agx::Vec3
& point,
51
const
agx::Vec3
& normal,
52
const
agx::Real
depth);
53
70
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
71
const
agxCollide::Sphere
* sphere,
72
const
agx::Vec3
& point,
73
const
agx::Vec3
& normal,
74
const
agx::Real
depth);
75
92
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
93
const
agxCollide::Box
* box,
94
const
agx::Vec3
& point,
95
const
agx::Vec3
& normal,
96
const
agx::Real
depth);
97
114
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
115
const
agxCollide::Capsule
* capsule,
116
const
agx::Vec3
& point,
117
const
agx::Vec3
& normal,
118
const
agx::Real
depth);
119
136
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
137
const
agxCollide::Cylinder
* cylinder,
138
const
agx::Vec3
& point,
139
const
agx::Vec3
& normal,
140
const
agx::Real
depth);
141
158
agx::Real
AGXPHYSICS_EXPORT
calculateElasticRestLength
(
159
const
agxCollide::Mesh
* mesh,
160
const
agx::Vec3
& point,
161
const
agx::Vec3
& normal,
162
const
agx::Real
depth);
163
164
}
165
}
166
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 Sun Sep 1 2024 11:18:37 for AGX Dynamics by
1.8.17