AGXDynamics
2.31.1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Set.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2021. 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
9
having been advised so by Algoryx Simulation AB for a time limited evaluation,
10
or having purchased a 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
19
// AUTOMATICALLY GENERATED, DO NOT EDIT! (except inline functions) //
21
22
#ifndef AGXFN_MATH_SET_H
23
#define AGXFN_MATH_SET_H
24
25
#include <
agxData/Array.h
>
26
#include <
agxData/EntityPtr.h
>
27
#include <
agx/Integer.h
>
28
#include <
agx/Real.h
>
29
#include <
agx/Math.h
>
30
#include <
agx/Job.h
>
31
#include <
agx/Vec2.h
>
32
#include <
agx/Vec3.h
>
33
#include <
agx/Vec4.h
>
34
35
36
namespace
agx {
namespace
Math { } }
37
38
namespace
agxFn
39
{
40
namespace
Math
41
{
49
template
<
typename
AutoT1,
typename
AutoT2>
50
AGX_FORCE_INLINE
void
Set
51
(
52
/* Parameter list automatically generated, do not edit */
53
AutoT1& result,
54
const
AutoT2& arg
55
)
56
{
57
result = (AutoT1)arg;
58
}
59
61
template
<
typename
AutoT1,
typename
AutoT2>
62
AGX_FORCE_INLINE
AutoT1
Set
63
(
64
const
AutoT2& arg
65
)
66
{
67
AutoT1 result;
68
agxFn::Math::Set
(result, arg);
69
return
result;
70
}
71
72
73
82
template
<
typename
AutoT1,
typename
AutoT2>
83
AGX_FORCE_INLINE
void
Set
84
(
85
/* Parameter list automatically generated, do not edit */
86
const
agx::RangeJob
& job,
87
agxData::Array< AutoT1 >
& result,
88
const
agxData::Array< AutoT2 >
& arg
89
)
90
{
91
for
(
size_t
i = job.
range
().
begin
(); i < job.
range
().
end
(); ++i)
92
{
93
agxFn::Math::Set
(result[i], arg[i]);
94
}
95
}
96
97
106
template
<
typename
AutoT1,
typename
AutoT2>
107
AGX_FORCE_INLINE
void
Set
108
(
109
/* Parameter list automatically generated, do not edit */
110
const
agx::RangeJob
& job,
111
agxData::Array< AutoT1 >
& result,
112
const
AutoT2& arg
113
)
114
{
115
for
(
size_t
i = job.
range
().
begin
(); i < job.
range
().
end
(); ++i)
116
{
117
agxFn::Math::Set
(result[i], arg);
118
}
119
}
120
121
122
}
123
}
124
125
#endif
agx::RangeJob::range
IndexRange & range()
Definition:
Job.h:630
Vec2.h
Vec3.h
Job.h
Math.h
AGX_FORCE_INLINE
#define AGX_FORCE_INLINE
Definition:
Object.h:62
EntityPtr.h
Array.h
agxData::Array
Type-specific Array used for fast access into the data held by a Buffer.
Definition:
agxData.h:30
agx::RangeJob
A range job executes a kernel implementation on a subset of the data.
Definition:
Job.h:282
agx::IndexRangeT::begin
T & begin()
Definition:
IndexRange.h:214
Real.h
Integer.h
agx::IndexRangeT::end
T & end()
Definition:
IndexRange.h:217
agxFn::Math::Set
void Set(AutoT1 &result, const AutoT2 &arg)
Function: Math.Set Implementation: (default)
Definition:
Set.h:51
Vec4.h
Components
agx
Math
Set.h
Generated on Mon Mar 21 2022 11:53:04 for AGXDynamics by
1.8.5