AGX Dynamics
2.37.2.0
MaterialTypes.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
#ifndef AGX_MATERIALTYPES_H
18
#define AGX_MATERIALTYPES_H
19
20
#include <
agxData/Type.h
>
21
22
namespace
agx
23
{
24
struct
SimpleContactMaterial
25
{
26
SimpleContactMaterial
();
27
SimpleContactMaterial
(
Real
friction_,
Real
restitution_);
28
Real
friction
;
29
Real
restitution
;
30
};
31
32
/* Implementation */
33
inline
SimpleContactMaterial::SimpleContactMaterial
() {}
34
inline
SimpleContactMaterial::SimpleContactMaterial
(
Real
friction_,
Real
restitution_)
35
:
friction
(friction_)
36
,
restitution
(restitution_)
37
{
38
}
39
40
AGX_FORCE_INLINE
std::ostream&
operator<<
( std::ostream& stream,
const
SimpleContactMaterial
&
/*material*/
)
41
{
42
stream <<
"TODO Implement ostream << SimpleContactMaterial"
<< std::endl;
43
return
stream;
44
}
45
}
46
47
48
AGX_TYPE_BINDING
(
agx::SimpleContactMaterial
,
"ContactMaterial"
)
49
50
#endif
/* AGX_MATERIALTYPES_H */
agx::SimpleContactMaterial::friction
Real friction
Definition:
MaterialTypes.h:28
agx::SimpleContactMaterial
Definition:
MaterialTypes.h:24
Type.h
AGX_TYPE_BINDING
#define AGX_TYPE_BINDING(_Type, _Name)
Definition:
Type.h:179
AGX_FORCE_INLINE
#define AGX_FORCE_INLINE
Definition:
Object.h:59
agx::SimpleContactMaterial::restitution
Real restitution
Definition:
MaterialTypes.h:29
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:22
agx::operator<<
std::ostream & operator<<(std::ostream &os, const agx::AddedMassInteraction::Matrix6x6 &m)
Definition:
AddedMassInteraction.h:441
agx::SimpleContactMaterial::SimpleContactMaterial
SimpleContactMaterial()
Definition:
MaterialTypes.h:33
agx::Real
double Real
Definition:
Real.h:42
include
agx
MaterialTypes.h
Generated on Sun Jan 28 2024 11:19:31 for AGX Dynamics by
1.8.13