SheafSystem  0.0.0.0
field_ed_funcs.h
1 
2 //
3 // Copyright (c) 2014 Limit Point Systems, Inc.
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 
18 #ifndef FIELD_ED_FUNCS_H
19 #define FIELD_ED_FUNCS_H
20 
21 #ifndef SHEAF_DLL_SPEC_H
22 #include "SheafSystem/sheaf_dll_spec.h"
23 #endif
24 
25 namespace fields
26 {
27 
28 //=============================================================================
30 //=============================================================================
32 
33 class SHEAF_DLL_SPEC field_at0;
34 
39 namespace field_ed_algebra
40 {
41 
45 void SHEAF_DLL_SPEC dot(const field_ed& x0, const field_ed& x1, field_at0& xresult,
46  bool xauto_access);
47 
51 void SHEAF_DLL_SPEC length(const field_ed& x0, field_at0& xresult,
52  bool xauto_access);
53 
57 void SHEAF_DLL_SPEC put_length(field_ed& x0, const vd_value_type& xlength,
58  bool xauto_access);
59 
63 void SHEAF_DLL_SPEC normalize(const field_ed& x0, field_ed& xresult,
64  bool xauto_access);
65 
70 void SHEAF_DLL_SPEC normalize(field_ed& x0, bool xauto_access);
71 
73 
74 } // namespace field_ed_algebra
75 
76 } // namespace fields
77 
78 #endif // ifndef FIELD_ED_FUNCS_H
void SHEAF_DLL_SPEC dot(const field_ed &x0, const field_ed &x1, field_at0 &xresult, bool xauto_access)
The Euclidean "dot" product of x0 with x2.
Namespace for fields component of sheaf system.
void SHEAF_DLL_SPEC length(const field_ed &x0, field_at0 &xresult, bool xauto_access)
The Euclidean length (magnitude) of x0.
A property of type sec_ed as a function of global coordinates.
Definition: field_ed.h:50
void SHEAF_DLL_SPEC normalize(const field_ed &x0, field_ed &xresult, bool xauto_access)
Normalize x0 (convert to a unit vector).
A property of type sec_at0 as a function of global coordinates.
Definition: field_at0.h:50
void SHEAF_DLL_SPEC put_length(field_ed &x0, const vd_value_type &xlength, bool xauto_access)
Set the Euclidean length (magnitude) of x0 to xlength.
double vd_value_type
The type of component in the fiber; the scalar type in the fiber vector space.
Definition: fiber_bundle.h:63